On 16/03/2021 19:35, Ihor Radchenko wrote:

I am testing the new regexp for a few days now. Because the regexp is
quite complex and because font-lock apparently fontifies even invisible
(folded) text, loading time on large org files with many links became
noticeably longer. Though it was 7.2Mb file with ~13k links in it.

I could not guess how to benchmark font-lock. I have tried to open file (to get everything loaded), kill the buffer,

emacsclient --eval '(progn (setq my-start (float-time)) (find-file "file.org") (- (float-time) my-start))'

but I see some changes in the buffer after 0.19 is reported (both with and without the patch). However I have not converted bracketed links into plain ones yet. I was going to try if some tricks could improve performance. E.g. I am curious if it will work noticeably faster when no nested parenthesis are allowed, but single ones may be at any position, not necessary at the end.

Are changes in white spaces below actually modified lines in your patch intended?


Reply via email to