emacs-devel
[Top][All Lists]
Advanced

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

Re: cperl + isearch + font-lock-multiline sometimes very slow


From: Chong Yidong
Subject: Re: cperl + isearch + font-lock-multiline sometimes very slow
Date: Thu, 19 Oct 2006 23:45:54 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Klaus Zeitler <address@hidden> writes:

> Since approx. last week isearch slows sometimes down to crawling speed in
> cperl files. Looking at top I see that emacs then needs around 30% CPU and
> when I stop isearch, for the next minute emacs eats up even more CPU before
> going back to normal behavior.
> This behavior disappeared when I turned off font-lock. Therefore I checked
> my font-lock settings and found out that setting font-lock-multiline to nil
> also helped. So I'm guessing it has something to do with font-lock or
> jit-lock. How should I proceed now to investigate this further?

I can't reproduce this.  Could you provide a detailed recipe and/or
test file?

Also, see if the slowdown goes away if you increase REGEXP_CACHE_SIZE
to (e.g.) 40 in search.c, as Kim suggested.

#define REGEXP_CACHE_SIZE 20




reply via email to

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