From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: cperl + isearch + font-lock-multiline sometimes very slow Date: Fri, 20 Oct 2006 18:52:17 -0400 Message-ID: <87bqo6siqm.fsf@stupidchicken.com> References: <87hcxzd4zx.fsf@furball.mit.edu> <87ac3rf8xg.fsf@furball.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161386026 22955 80.91.229.2 (20 Oct 2006 23:13:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2006 23:13:46 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 21 01:13:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gb3YX-0006bS-9i for ged-emacs-devel@m.gmane.org; Sat, 21 Oct 2006 01:13:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb3YW-0001a5-KQ for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2006 19:13:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gb3Dj-00047Z-FL for emacs-devel@gnu.org; Fri, 20 Oct 2006 18:52:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gb3Dg-00044e-5i for emacs-devel@gnu.org; Fri, 20 Oct 2006 18:52:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb3Df-00044G-Uj for emacs-devel@gnu.org; Fri, 20 Oct 2006 18:52:04 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gb3Dd-0000uX-6a for emacs-devel@gnu.org; Fri, 20 Oct 2006 18:52:02 -0400 Original-Received: by cyd (Postfix, from userid 1000) id E2D234E412; Fri, 20 Oct 2006 18:52:17 -0400 (EDT) Original-To: Klaus Zeitler In-Reply-To: <87ac3rf8xg.fsf@furball.mit.edu> (Chong Yidong's message of "Fri\, 20 Oct 2006 08\:50\:19 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60970 Archived-At: Chong Yidong writes: >> (setq font-lock-multiline t) >> (require 'printing "printing" 'no-error) >> (fset 'perl-mode 'cperl-mode) >> >> 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. > > I still can't reproduce this, using the above .emacs file and > perl5db.pl. To be precise, I save the above three lines into foo.el, and do emacs -Q -l foo.el /usr/share/perl/5.8/perl5db.pl After waiting several minutes and watching with `top', I observe that Emacs' CPU usage never exceeds 4.5% (which is normal for jit stealth fontification), and there is no sluggishness either in Emacs or other programs. Maybe the scheduler in Solaris (which I noticed you are using) behaves funny.