GNU bug report logs - #62780
30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Tue, 11 Apr 2023 18:51:02 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 62780 <at> debbugs.gnu.org
Subject: bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace
Date: Tue, 11 Apr 2023 22:25:25 +0300
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Date: Tue, 11 Apr 2023 18:52:43 +0000
> 
> 1. emacs -Q
> 2. M-x org-mode <RET>
> 3. M-x org-table-create <RET> 30x30 <RET>
> 4. M-: (setq show-trailing-whitespace t) <RET>
> 4. M-x org-table-insert-column <RET> (20x times)
> 5. M-> type something
> 6. Observe significant lag when typing. CPU profiler does not expose much.

show-trailing-whitespace disables quite a few redisplay optimizations,
including even the cursor-motion optimization (when nothing has
changed on display except the position of point).  And full thorough
redisplay becomes slow when you have relatively long lines, because
Emacs is forced to consider all of them.

In addition, org-table seems to put a large number of 'display'
properties (like, 2 per cell?), which also slows down redisplay.

Are you saying there's been a regression in Emacs 30 in this situation
wrt Emacs 29 and Emacs 28?  I don't think I see a regression in my
testing here.




This bug report was last modified 2 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.