I use Emacs profiler profiled company-capf in Org-mode buffer. Here is an org-mode buffer test snippet (in a big Org file): #+begin_src clojure :results pp (nth '(1 2 3) 1) #+end_src Profiler result in attachments. It has very recursive deep file-truename invoking.