Hello, Eli Zaretskii <e...@gnu.org> writes:
> Thanks. So this looks like a problem with Org Mode. In particular, > org-element-inline-babel-call-successor takes a lot of time in this > case. That function traverses the buffer from top to bottom: > > (while (search-forward "call_" nil t) > (save-excursion > (goto-char (match-beginning 0)) > (when (looking-at org-babel-inline-lob-one-liner-regexp) > (throw 'exit (cons 'inline-babel-call (point))))))))) This one is an updated function, which doesn't match posted report. I expect it to be faster than the previous implementation. It would be nice to have a new profiler report, though. Regards, -- Nicolas Goaziou