unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Slow cperl-mode in emacs 22 & 23
Date: Sun, 05 Apr 2009 10:34:31 +1000	[thread overview]
Message-ID: <87y6ugym3s.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.4593.1238817391.31690.help-gnu-emacs@gnu.org

Hinrik Örn Sigurðsson <hinrik.sig@gmail.com> writes:

> Same deal with a fresh cvs checkout of emacs.
>
>

I've not used cperl-mode for a while, but some points to consider....

1. In one of your posts, you mentioned a reference to cpan. Are you
using a version of cperl from cpan or the one that comes bundled with
emacs? 

2. Be careful regarding cperl version numbers. It is a little confusing
as there is one 'fork' of cperl that is bundled with emacs and another
which is maintained by the author. The version numbers are not in sync
(at least they didn't use to be), so it can sometimes be a bit
confusing as to whether your running the latest version or not. Best
thing to do is get the latest version from the author's website

http://math.berkeley.edu/~ilya/software/emacs/

Ilya is a regular contributor to this group, so you may be lucky enough
to get a response directly from the mode author. 

3. Note that cperl mode has some pretty advanced features and is quite
customizable. On large files, you may get better resonse if you turn off
some of the options, particularly the 'hairy' ones may have significant
performance impact on a large file. Try turning some of them off and
then re-enabling different bits and see if that helps with the
performance. 

4. A 3,000 line perl script sounds a tad scarey. I like perl and have in
the past spent many months working exclusively in perl. One lesson I
learnt was to keep my perl source files as small as possible. I've found
things a lot easier if the code is broken up into your own
modules. Maybe that would help?

regards,

Tim

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2009-04-05  0:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 22:26 Slow cperl-mode in emacs 22 & 23 Hinrik Örn Sigurðsson
2009-04-04  3:56 ` Hinrik Örn Sigurðsson
     [not found] ` <mailman.4593.1238817391.31690.help-gnu-emacs@gnu.org>
2009-04-05  0:34   ` Tim X [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-04-03 13:09 Hinrik Örn Sigurðsson
2009-04-03 13:10 ` Hinrik Örn Sigurðsson
2009-04-03 14:10 ` Hinrik Örn Sigurðsson
2009-04-05  0:15 ` Hinrik Örn Sigurðsson

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=87y6ugym3s.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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.
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).