From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Performance regression in CVS HEAD's *compilation* buffer Date: Sat, 29 Jan 2011 00:28:04 -0500 Message-ID: References: <18825.3759.960897.974404@priss.frightenedpiglet.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296278904 27843 80.91.229.12 (29 Jan 2011 05:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 05:28:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: sand@blarg.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 06:28:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pj3MB-0003a7-P0 for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 06:28:19 +0100 Original-Received: from localhost ([127.0.0.1]:56311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj3MA-0007z9-T6 for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 00:28:18 -0500 Original-Received: from [140.186.70.92] (port=40964 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj3Lz-0007z3-0r for emacs-devel@gnu.org; Sat, 29 Jan 2011 00:28:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pj3Ly-0008Ea-0H for emacs-devel@gnu.org; Sat, 29 Jan 2011 00:28:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54457 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pj3Lx-0008EW-Sy for emacs-devel@gnu.org; Sat, 29 Jan 2011 00:28:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlwFAC40Q01FpY7U/2dsb2JhbACWZY4edLsFhU8EhRiPaA X-IronPort-AV: E=Sophos;i="4.60,396,1291611600"; d="scan'208";a="89663068" Original-Received: from 69-165-142-212.dsl.teksavvy.com (HELO ceviche.home) ([69.165.142.212]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 29 Jan 2011 00:28:04 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 13CE0660DC; Sat, 29 Jan 2011 00:28:04 -0500 (EST) In-Reply-To: <18825.3759.960897.974404@priss.frightenedpiglet.com> (sand@blarg.net's message of "Tue, 3 Feb 2009 19:42:39 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135192 Archived-At: > I updated my CVS tree to HEAD today (2009-02-03, around noon PST), > compiled it, and started using it. My previous sync had been around > 2008-12-01. During that interval, the performance of inserting long > lines into the *compilation* buffer has dropped by an order of > magnitude. I've only recently started taking a look at compile.el and haven't had a chance to investigate this problem, but I just tried: M-x compile RET echo C-u 6400 x RET and it finished instantly. Maybe this is because the problem was fixed a while ago. But I also just installed a change which should significantly help such cases by only processing lines when they're complete, which avoids an N^2 behavior. Stefan