From: Jambunathan K <kjambunathan@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 15755@debbugs.gnu.org
Subject: bug#15755: 24.3.50; cperl-mode annoyingly slow on my netbook
Date: Thu, 31 Oct 2013 01:13:47 +0530 [thread overview]
Message-ID: <878uxa7de4.fsf@gmail.com> (raw)
In-Reply-To: <jwv4n7y39ys.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Wed, 30 Oct 2013 14:13:34 -0400")
[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]
Stefan Monnier <monnier@IRO.UMontreal.CA> 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.
--8<---------------cut here---------------start------------->8---
End of `qw( ... )' string/RE not found: (scan-error Unbalanced parentheses 1543 155427)
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
[-- Attachment #2: cperl-lossage.txt --]
[-- Type: text/plain, Size: 370 bytes --]
C-x C-f t m p / w i k i . p l <return> <escape> x c
p e r l - m o d e <return> C-s A p p l y R u l e s
SPC { C-a <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> C-M-e
<up> <up> <up> 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 <escape> x v i e w - l o s s a g e <re
turn>
[-- Attachment #3: Type: text/plain, Size: 86 bytes --]
--8<---------------cut here---------------end--------------->8---
> Stefan
next prev parent reply other threads:[~2013-10-30 19:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 13:29 bug#15755: 24.3.50; cperl-mode annoyingly slow on my netbook Jambunathan K
2013-10-30 18:13 ` Stefan Monnier
2013-10-30 19:43 ` Jambunathan K [this message]
2013-10-31 1:24 ` Stefan Monnier
2013-10-31 1:58 ` Jambunathan K
2013-10-31 11:58 ` Nathan Trapuzzano
2013-10-31 16:56 ` Stefan Monnier
2013-10-31 17:23 ` Nathan Trapuzzano
2013-10-31 19:16 ` Stefan Monnier
2013-11-10 5:31 ` Jambunathan K
2013-11-10 13:56 ` Stefan Monnier
2013-11-15 5:12 ` Jambunathan K
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uxa7de4.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=15755@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).