From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9065: 24.0.50; ESC-> does not seem to function Date: Mon, 10 Oct 2011 22:10:32 -0400 Message-ID: References: <1AB10BE2-8490-4365-BB96-586D68F69C1A@Freenet.DE> <71CC3B57-1E83-411E-8D5D-473F946659BA@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318299060 17386 80.91.229.12 (11 Oct 2011 02:11:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 02:11:00 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 9065@debbugs.gnu.org To: Peter Dyballa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 04:10:56 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 1RDRnz-00073U-Eo for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2011 04:10:55 +0200 Original-Received: from localhost ([::1]:59874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDRny-0001oh-Su for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2011 22:10:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDRnt-0001nf-O5 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 22:10:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDRns-0005Qj-6Q for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 22:10:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDRns-0005Qe-1U for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 22:10:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RDRo5-0004Pg-SM for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 22:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2011 02:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9065-submit@debbugs.gnu.org id=B9065.131829905616948 (code B ref 9065); Tue, 11 Oct 2011 02:11:01 +0000 Original-Received: (at 9065) by debbugs.gnu.org; 11 Oct 2011 02:10:56 +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 1RDRnz-0004PH-IV for submit@debbugs.gnu.org; Mon, 10 Oct 2011 22:10:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDRnx-0004Oz-Sx; Mon, 10 Oct 2011 22:10:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALSkk05FxJoX/2dsb2JhbABDqBqBBoFTAQEFJy8jEAs0EhQYDSTCHIdMBKEdhEU X-IronPort-AV: E=Sophos;i="4.68,520,1312171200"; d="scan'208";a="141054091" Original-Received: from 69-196-154-23.dsl.teksavvy.com (HELO ceviche.home) ([69.196.154.23]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Oct 2011 22:10:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id AA7EF660B6; Mon, 10 Oct 2011 22:10:32 -0400 (EDT) In-Reply-To: <71CC3B57-1E83-411E-8D5D-473F946659BA@Freenet.DE> (Peter Dyballa's message of "Sun, 9 Oct 2011 12:24:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 10 Oct 2011 22:11:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:52491 Archived-At: retitle 9065 Speed up compile.el scanning thanks Yes, the scanning performed is problematic for large buffers. There are several ways to improve the problem: 1- make the job more lazy. E.g. split compilation--ensure-parse into 3 parts: a- a position independent part (that can be done one a region regardless of preceding text) to use in font-lock. b- a position-dependent part doing all the heavy lifting, used in next-error. c- the rest is also position-dependent but also used from font-lock, i.e. works just like the current compilation--ensure-parse and hence is the source of performance problem (so it should do as little as possible). 2- speed up the scanning done in syntax-propertize. I suspect most of the time is spent regexp-matching, and this regexp matching can be done some other way (instead of a loop over various regexps each one matched via re-search-forward using a backtracking matcher, we could combine them all into a single regexp matched via a non-backtracking matcher, except for the few regexps using back-refs). I.e. option (2) is clearly possible and could reduce the performance problem by a very large amount. But option (1) is also possible and highly desirable. Patches welcome. Stefan