Subject: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling)

From: Ihor Radchenko <[email-masked]>
Date: Mon, 22 Aug 2022 10:31:05 +0800

Gregory Heytings <[email-masked]> writes:

>>> Ihor, any chance that you could try the patch (which I attach again to 
>>> this post) and tell us if if solves your original problem, namely 
>>> fontification that is slowed down in large Org files?
>>
>> The patch does not appear to apply onto current master.
>>
>
> It does here (at 8d4789c072), both with "git apply" and "patch -p1".  Are 
> you sure you're really on the master branch, without local modifications 
> in src/buffer.h and src/xdisp.c?

git apply did not work on my side.
patch -p1 worked, though complained about converting newlines.

The patch appears to solve the problem. I do not see the slowness
any more. Initial fontification got a lot faster as well.

Thanks!

-- 
Ihor Radchenko,
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