From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size Date: Fri, 26 Sep 2008 07:53:19 +0000 Message-ID: <20080926075319.GA1659@muc.de> References: <48DB8026.4040201@gmx.at> <706144.90919.qm@web56508.mail.re3.yahoo.com> Reply-To: Alan Mackenzie , 1024@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222441985 314 80.91.229.12 (26 Sep 2008 15:13:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 15:13:05 +0000 (UTC) To: jw_spambox@yahoo.com, 1024@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 17:14:02 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KjF0y-0004Tg-0B for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 17:13:52 +0200 Original-Received: from localhost ([127.0.0.1]:50142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjEzv-0006Oq-32 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 11:12:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kj8PE-0008GY-En for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:10:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kj8PC-0008FX-1L for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:10:27 -0400 Original-Received: from [199.232.76.173] (port=41109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kj8PB-0008FU-S1 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:10:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54720) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kj8PA-0003eJ-Tq for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:10:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8Q89spQ009287; Fri, 26 Sep 2008 01:09:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8Q7t46o005129; Fri, 26 Sep 2008 00:55:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 26 Sep 2008 07:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1024 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 1024-submit@emacsbugs.donarmstrong.com id=B1024.12224152033770 (code B ref 1024); Fri, 26 Sep 2008 07:55:03 +0000 Original-Received: (at 1024) by emacsbugs.donarmstrong.com; 26 Sep 2008 07:46:43 +0000 Original-Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8Q7kc7C003764 for <1024@emacsbugs.donarmstrong.com>; Fri, 26 Sep 2008 00:46:40 -0700 Original-Received: (qmail 33600 invoked by uid 3782); 26 Sep 2008 07:46:36 -0000 Original-Received: from acm.muc.de (pD9E5006E.dip.t-dialin.net [217.229.0.110]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 26 Sep 2008 09:46:35 +0200 Original-Received: (qmail 1917 invoked by uid 1000); 26 Sep 2008 07:53:19 -0000 Content-Disposition: inline In-Reply-To: <706144.90919.qm@web56508.mail.re3.yahoo.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 26 Sep 2008 04:10:27 -0400 X-Mailman-Approved-At: Fri, 26 Sep 2008 11:12:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20809 Archived-At: Hi, John, On Thu, Sep 25, 2008 at 08:22:34PM -0700, John W wrote: > > Could you please have a look at the description of bug#851 > > http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=851 > > and try the recipe proposed there by Chong Yidong? > Sure. I tried this patch > +++ cc-engine.el 2008/04/01 21:41:21 1.56.2.11 This slowdown happened because of an earlier bug fix. Part of that fix is scanning the entire buffer, "fixing" things which could derail the syntax and font locking, e.g. preprocessor lines like this: #warning this isn't fixed yet! ^ , where the apostrophe was being treated like a string opener. That fix was not coded with a view to speed, unfortunately. It was later fixed in cc-mode.el version 1.75 (CVS trunk at savannah) and version 1.58.2.12 (in the Emacs 22 branch) on 2008-05-24. The fix was incorporated into Emacs 22.3, released a few days ago. Also, thanks for generating and posting the stack dump, which made it trivially easy to track down the problem. > - John -- Alan Mackenzie (Nuremberg, Germany).