emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57207: closed (29.0.50; Fontification is slow after e7b5912b23 (Impr


From: GNU bug Tracking System
Subject: bug#57207: closed (29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling))
Date: Thu, 08 Dec 2022 10:07:01 +0000

Your message dated Thu, 08 Dec 2022 10:05:58 +0000
with message-id <a14f4d136f03f1180913@heytings.org>
and subject line Re: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 
(Improvements to long lines handling)
has caused the debbugs.gnu.org bug report #57207,
regarding 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long 
lines handling)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
57207: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57207
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Sun, 14 Aug 2022 23:55:46 +0800
I am experiencing severe performance degradation on current master.

The degradation happens when working with Org files and I managed to
bisect the cause down to

e7b5912b235936b304701ba6b1e808d9b197fd4f is the first bad commit
commit e7b5912b235936b304701ba6b1e808d9b197fd4f
Author: Gregory Heytings <gregory@heytings.org>
Date:   Sat Jul 16 19:06:38 2022 +0000

    Improvements to long lines handling.
    
    * src/buffer.h (struct buffer): New field 'long_line_optimizations_p'.
    
    * src/buffer.c (syms_of_buffer): New variable 'long-line-threshold'.
    (reset_buffer): Initialize the 'long_line_optimizations_p' field.
    (Fbuffer_swap_text): Handle it.
...

I tried M-x profiler to find the cause, but the 3-4 second hangs are not
reflected in the profiler report.

debug-on-entry + manual stepping through the function revealed that the
hang happens when calling jit-lock-fontify-now.

I was able to trigger the slowdown when unfolding headlines hidden using
'invisible text property.

Do you have any idea what could be going wrong or how to debug things further?

-- 
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Thu, 08 Dec 2022 10:05:58 +0000

Ihor confirmed (privately) that this bug is fixed.  Closing.




--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]