From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#7069: Compilation from within emacs becomes slower and slower until Emacs is restarted Date: Sun, 24 Apr 2011 18:16:58 -0700 Message-ID: <4DB4CB8A.80607@gmail.com> References: <4DAEAFB9.8090900@sdu.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303695463 27275 80.91.229.12 (25 Apr 2011 01:37:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 01:37:43 +0000 (UTC) Cc: Lars Hamren , 7069@debbugs.gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 25 03:37:38 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QEAk2-0006AE-VW for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2011 03:37:35 +0200 Original-Received: from localhost ([::1]:44604 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAk2-0003rn-Ho for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Apr 2011 21:37:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAk0-0003rX-BN for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:37:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEAjz-0003Yg-Cp for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:37:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAjz-0003YX-BK for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:37:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QEAR7-0006u2-NJ; Sun, 24 Apr 2011 21:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2011 01:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.130369424626487 (code B ref -1); Mon, 25 Apr 2011 01:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Apr 2011 01:17:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEAQX-0006tA-Ud for submit@debbugs.gnu.org; Sun, 24 Apr 2011 21:17:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEAQV-0006sz-Fq for submit@debbugs.gnu.org; Sun, 24 Apr 2011 21:17:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEAQP-0000aL-5S for submit@debbugs.gnu.org; Sun, 24 Apr 2011 21:17:18 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:39424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAQP-0000aH-4B for submit@debbugs.gnu.org; Sun, 24 Apr 2011 21:17:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAQO-0000sT-89 for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEAQN-0000Zs-CD for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:17:16 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEAQN-0000Zn-66 for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2011 21:17:15 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QEAQJ-0006mu-GL for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 03:17:11 +0200 Original-Received: from c-67-183-23-114.hsd1.wa.comcast.net ([67.183.23.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2011 03:17:11 +0200 Original-Received: from dan.colascione by c-67-183-23-114.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2011 03:17:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-183-23-114.hsd1.wa.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 24 Apr 2011 21:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:45979 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/20/11 6:10 AM, Stefan Monnier wrote: >> (add-hook 'compilation-mode-hook >> (lambda () (setq compilation-error-regexp-alist >> (cons >> ;; Quartus II error messages >> '(".*Verilog .* at \\(.+\\)(\\([0-9]+\\)): .*" 1 2) >> compilation-error-regexp-alist)))) [snip] >> I haven't looked further into why this should be a problem. > > I can't think of any reason why this regexp should make compilation > become slower (I can see why it would make it slow, but unless lines > become longer over time, it should keep the same slowness at the end as > it had at the beginning). He's adding an entry to compilation-error-regexp-alist every time he compiles, and this variable is not buffer local. After the 20th compilation, Emacs tries 20 times harder to match this regular expression. He should be using add-to-list or (pushnew mumble :test #'equal). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk20y4YACgkQ17c2LVA10VsQ0wCg3bzMD1o0IRivJBy4re3yofcv K/MAniiaVMysZW/7RGG1QS1E9RAIxNT5 =C03A -----END PGP SIGNATURE-----