all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: Sun, 10 Nov 2013 11:01:14 +0530	[thread overview]
Message-ID: <8761s0rffh.fsf@gmail.com> (raw)
In-Reply-To: <878uxa7de4.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 31 Oct 2013 01:13:47 +0530")


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 <kjambunathan@gmail.com> writes:

> 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.
>
>
>
> 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 <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>
> --8<---------------cut here---------------end--------------->8---
>
>
>
>>         Stefan





  parent reply	other threads:[~2013-11-10  5:31 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=8761s0rffh.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 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.