Closed stephe-ada-guru closed 4 years ago
I didn't realize github would format the patch. Now attached. slow_startup.diff.txt
Makes sense, let's try this. Thanks!
I didn't realize github would format the patch.
FWIW, you can surround it with triple-backticks to mark it as a code block, and even tag it with a content type: I did that for you above so you can click "edit" to see how it works.
I have one file that takes 30 seconds to open.
The problem is that mmm-refontify-maybe calls font-lock-ensure on the entire buffer. As the FIXME: there says, this is a bad idea; font-lock is supposed to work on small portions of the buffer at a time. After fixing this, there is no noticeable delay in opening my large file. Here's a patch: