From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#15755: 24.3.50; cperl-mode annoyingly slow on my netbook Date: Sun, 10 Nov 2013 11:01:14 +0530 Message-ID: <8761s0rffh.fsf@gmail.com> References: <87k3guhoob.fsf@gmail.com> <878uxa7de4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384061530 2180 80.91.229.3 (10 Nov 2013 05:32:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2013 05:32:10 +0000 (UTC) Cc: 15755@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 10 06:32:15 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VfNd8-0004PR-Us for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 06:32:15 +0100 Original-Received: from localhost ([::1]:59164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNd8-00050W-Ez for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 00:32:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNd1-00050M-3P for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 00:32:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfNcw-00041g-9K for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 00:32:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNcw-00041X-65 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 00:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VfNcv-00078A-Lr for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 00:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2013 05:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15755-submit@debbugs.gnu.org id=B15755.138406146827342 (code B ref 15755); Sun, 10 Nov 2013 05:32:01 +0000 Original-Received: (at 15755) by debbugs.gnu.org; 10 Nov 2013 05:31:08 +0000 Original-Received: from localhost ([127.0.0.1]:45069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfNc3-00076v-5M for submit@debbugs.gnu.org; Sun, 10 Nov 2013 00:31:07 -0500 Original-Received: from mail-pb0-f47.google.com ([209.85.160.47]:51757) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfNc0-00076P-08 for 15755@debbugs.gnu.org; Sun, 10 Nov 2013 00:31:04 -0500 Original-Received: by mail-pb0-f47.google.com with SMTP id rq2so944703pbb.34 for <15755@debbugs.gnu.org>; Sat, 09 Nov 2013 21:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=NAEAgpQLO7ZkXff5wTAMAbfp0x6LxbL6Bu+N5k3pKaA=; b=elG0Ta8wtQcXU1BwYUI3yJX3ep3ECz/PPC36YeSUzoFnOZU1jaF8HbsyDg+RuYoGVj Km1cVMpVa4b679lCMP5pZREmW0ETN2SXhCO/GkRU9O/qRRF4JiWRUJHwT50rVOh1eUTj hXV8BLjDccuXaQMxpxp7nxps3jfRE7gRZHXVOsE4VOaYNUjZkONJUqKIc2/mjb2UhSOz xkY2P8OKr7xvW5otNMjffbBDafwkpPFSlhbjuIdcjjfQu2lfEFk0jvn73SVzhf6lhuZF +6YUD8AfSMY43mMA/ajLsfGIoxuSidv41t4iflw0vNdtvYMzRDBz3JeARCgvLtGJ+s2b 0/ig== X-Received: by 10.68.196.69 with SMTP id ik5mr882761pbc.132.1384061457826; Sat, 09 Nov 2013 21:30:57 -0800 (PST) Original-Received: from debian-6.05 ([115.242.147.33]) by mx.google.com with ESMTPSA id ja5sm22254053pbc.14.2013.11.09.21.30.55 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sat, 09 Nov 2013 21:30:57 -0800 (PST) In-Reply-To: <878uxa7de4.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 31 Oct 2013 01:13:47 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80192 Archived-At: A quick update: Some magic has happened between the following revisions: 114868 rgm@gnu.org-20131030102316-8vif7u6ecyo3yieg 115051 jan.h.d@swipnet.se-20131109111953-cysfi19meuidy96q The slowdown with the recipe above is not that noticeable now. Is this magic or is there an explanation? Jambunathan K writes: > Stefan Monnier writes: > >>> On my netbook (HP Mini 110) cperl-mode responds so slowly that it is >>> very annoying to type. >> >> Usually, cperl-mode is fast enough (most of my machines are about as >> powerful as a typical netbook). So maybe you're just hitting a bug >> (tho, maybe you're hitting a pathological case, as well). >> >> Do you have some test case we can use to reproduce the problem? > > If indeed this is a bug, I would call it a "showstopper" for cperl-mode. > > Here is a recipe. The file used below is the Oddmuse's Wiki engine. > > mkdir ~/tmp > > cd ~/tmp > > wget http://git.savannah.gnu.org/cgit/oddmuse.git/plain/wiki.pl > > emacs -Q > > Here is a report from M-x view-lossage RET. I do this: > > 1. C-x C-f ~/tmp/wiki.pl > 2. M-x cperl-mode > 3. C-s ApplyRules { > 4. C-a > 5. Move the cursor down a few lines > 6. C-M-e. Jump to end of defun. Move up a few lines to seek the comment > line. > 7. Type a few characters > > (5) is slow. (7) is very slow. Meaning it takes ages for the 10 or so > characters to be echoed. > > Interestingly, after (2) I see the following message reported by > cperl-mode. I am not sure whether the error is a cause for slow > performance. > > Anyways, if I do, > > perl wiki.pl > > I don't see the perl complaining about the file being bad. So there is > a bug somewhere. > > Apart from the recipe above, you can try the following > > 1. Mark the ApplyRules sub. > 2. M-x indent-region it. > > With perl-mode, (1) and (2) is very quick. But with cperl-mode things > are bad. > > > > End of `qw( ... )' string/RE not found: (scan-error Unbalanced parentheses 1543 155427) > > --8<---------------cut here---------------start------------->8--- > C-x C-f t m p / w i k i . p l x c > p e r l - m o d e C-s A p p l y R u l e s > SPC { C-a > C-M-e > C-e SPC i n s e r t i n g SPC t h i > s SPC t e x t SPC t a k e s SPC a SPC l o t SPC o f > SPC t i m e x v i e w - l o s s a g e turn> > --8<---------------cut here---------------end--------------->8--- > > > >> Stefan