[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58558: 29.0.50; re-search-forward is slow in some buffers
From: |
Ihor Radchenko |
Subject: |
bug#58558: 29.0.50; re-search-forward is slow in some buffers |
Date: |
Mon, 10 Apr 2023 09:57:48 +0000 |
Mattias Engdegård <mattias.engdegard@gmail.com> writes:
> Ihor, would you consider the possibility of regexp cache thrashing? It does
> occur from time to time; that cache is quite small. Try this instrumentation
> patch. (We should probably have something like it permanently.)
Generating agenda with Emacs master + your patch:
:regexp-cache-hit: 6225399 :regexp-cache-miss: 109490
Emacs 28.3 + your patch:
:regexp-cache-hit: 4968571 :regexp-cache-miss: 79637
Also, I tried to play around with increasing REGEXP_CACHE_SIZE in the
past. It does not make noticeable difference in my setup.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>