William Denton <will...@williamdenton.org> writes: >> 40255 60% - org-do-latex-and-related >> 40243 60% re-search-forward > ... > I spent a while with git bisect this afternoon and the problem (for me) > started here: > > commit 5d186b499dde97f59a91dc11f4c4a15113d29f4d > Author: Ihor Radchenko <yanta...@posteo.net> > Date: Sun Feb 25 11:42:44 2024 +0300 > > org-fold: Refactor fontifying newlines after folds > > That seems to fit with some of what the profiling showed, in that it's > about font-locking, though why LaTeX is mentioned is beyond me. When I > was going through the bisect process I wasn't testing on files with > LaTeX, I was expanding and folding some I regularly use that have some > code blocks and tables with a few hundred lines.
Profiler data does not make sense here. In any case, I tried to make fontifying newlines after folds slightly faster on the latest main: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c9b655f27 If you are lucky, it should help. -- 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>