all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: cperl + isearch + font-lock-multiline sometimes very slow
Date: Fri, 20 Oct 2006 08:50:19 -0400	[thread overview]
Message-ID: <87ac3rf8xg.fsf@furball.mit.edu> (raw)
In-Reply-To: <q5gac3rchw3.fsf@sfsw51.de.lucent.com> (Klaus Zeitler's message of "Fri\, 20 Oct 2006 14\:05\:00 +0200")

Klaus Zeitler <kzeitler@lucent.com> writes:

>>>>>> "Chong" == Chong Yidong <cyd@stupidchicken.com> writes:
>     Chong> 
>     Chong> I can't reproduce this.  Could you provide a detailed recipe and/or
>     Chong> test file?
>
> I've now managed to reduce my .emacs file from 4000 lines to the following
> 3 lines:
> --- snip ---
> (setq font-lock-multiline t)
> (require 'printing "printing" 'no-error)
> (fset 'perl-mode 'cperl-mode)
> --- snip ---
>
> With these 3 lines I can still observe the problem.
> 1. Start emacs with .emacs containing the 3 lines above
> 2. load a Perl file (not too small), I use perl5db.pl from the Perl distribution
> 3. Watch emacs CPU usage
>
> After approximaetly 25 seconds, the CPU usage climbs for nearly 3 minutes
> to 55% and emacs behaves very sluggish. Afterwards emacs behaves normal.
> No need for isearch, that was obviously a misinterpretation. Don't know
> what the package 'printing' has to do with it. Maybe it's a problem with
> menu-bar updates and stealth fontification.

I still can't reproduce this, using the above .emacs file and
perl5db.pl.  A month or two ago, we fixed such a bug dealing with a
bad interaction between menu-bar updates and stealth fontification;
stealth fontification should no longer trigger menu-bar updates.
Could you just check that you don't have any old files (e.g. of
jit-lock) hanging around in your CVS copy?

Assuming it's not that, please see if it's due to stealth
fontification by changing jit-lock-stealth-time to nil and see if the
problem recurs.  Also, try setting jit-lock-stealth-time to 2 and see
if the problem occurs more quickly.

  reply	other threads:[~2006-10-20 12:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-19  6:21 cperl + isearch + font-lock-multiline sometimes very slow Klaus Zeitler
2006-10-19  7:48 ` Richard Stallman
2006-10-19 11:26   ` Kim F. Storm
2006-10-20  6:06     ` Richard Stallman
2006-10-20  3:45 ` Chong Yidong
2006-10-20 12:05   ` Klaus Zeitler
2006-10-20 12:50     ` Chong Yidong [this message]
2006-10-20 22:52       ` Chong Yidong
2006-10-21 15:57     ` martin rudalics
2006-10-22 17:31       ` Chong Yidong
2006-10-22 20:34         ` martin rudalics
2006-10-22 21:01           ` Chong Yidong
2006-10-23  8:37         ` Klaus Zeitler
2006-10-23 20:25           ` Stefan Monnier
2006-10-23 20:52             ` Stefan Monnier
2006-10-22  9:57     ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ac3rf8xg.fsf@furball.mit.edu \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.