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

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

Re: Fwd: Serious performace problems on Windows XP with new(!) GNU Emacs


From: Chong Yidong
Subject: Re: Fwd: Serious performace problems on Windows XP with new(!) GNU Emacs v22 (both patched and unpatched EmacsW32 were tried)
Date: Tue, 07 Nov 2006 11:08:44 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

martin rudalics <address@hidden> writes:

> On the other hand, doing "(overlay-recenter (point-max))" before
> deleting the overlays seems crucial.  Apparently, `overlays-in' always
> returns a list of overlays in reverse order of their buffer positions.
> With the overlay center at bob, unchain_overlay always searches till the
> end of overlays_after, hence overhead is inherently quadratic with
> respect to the number of overlays in the buffer.

So, if I understand you correctly, the change to make is to replace

  (remove-overlays nil nil 'face 'whitespace-highlight)
  (overlay-recenter (point-max))

with

  (overlay-recenter (point-max))
  (remove-overlays nil nil 'face 'whitespace-highlight)

Is that right?





reply via email to

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