GNU bug report logs - #3441
23.0.94; *compilation* long lines painfully slow

Previous Next

Package: emacs;

Reported by: "Marshall, Simon" <Simon.Marshall <at> misys.com>

Date: Mon, 1 Jun 2009 11:25:07 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 3441 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Marshall\, Simon" <Simon.Marshall <at> misys.com>
Cc: 3441 <at> debbugs.gnu.org, Alex Ott <alexott <at> gmail.com>,
        Joakim Verona  <joakim <at> verona.se>
Subject: Re: 23.0.94; *compilation* long lines painfully slow
Date: Wed, 17 Jun 2009 12:36:36 -0400
> Create a Makefile with the contents:
>
> all:
> 	@echo [insert 5000 chars]
>
> Run emacs -Q and do Tools > Compile... RET and I see Emacs create the
> *compilation* window and insert chunks of the echo output.  23.0.94
> takes 20+ seconds to complete it and is pretty much unusable during that
> time.  22.3 takes 1 second.  Looking back at earlier pretests, this also
> applies to 23.0.91.

This is due to the following in compilation-error-regexp-alist-alist:

  (maven
   ;; Maven is a popular build tool for Java.  Maven is Free Software.
   "\\(.*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\]" 1 2 3)

which was added here:

2007-07-25  Joakim Verona  <joakim <at> verona.se>  (tiny change)

	* progmodes/compile.el (compilation-error-regexp-alist-alist):
	Add support for the Maden build tool.

This regexp is pathologically slow on long lines.  Since the performance
impact is quite serious, and this bug has affected more than one user, I
went ahead and commented out this line in compile.el.

Joakim, could try to come up with a faster regexp?



This bug report was last modified 15 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.