From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John W Newsgroups: gmane.emacs.bugs Subject: bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size Date: Thu, 25 Sep 2008 20:22:34 -0700 (PDT) Message-ID: <706144.90919.qm@web56508.mail.re3.yahoo.com> References: <48DB8026.4040201@gmx.at> Reply-To: jw_spambox@yahoo.com, 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 1222401905 16749 80.91.229.12 (26 Sep 2008 04:05:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 04:05:05 +0000 (UTC) Cc: 1024@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 06:06:01 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 1Kj4a9-0005f6-IC for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 06:05:52 +0200 Original-Received: from localhost ([127.0.0.1]:34764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kj4Z5-00016i-Dp for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 00:04:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kj4LZ-0005YD-Qr for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 23:50:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kj4LX-0005Y1-Fb for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 23:50:24 -0400 Original-Received: from [199.232.76.173] (port=59070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kj4LX-0005Xy-7u for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 23:50:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60504) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kj4LW-0003K5-U5 for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 23:50:23 -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 m8Q3nsJB009246; Thu, 25 Sep 2008 20:49:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8Q3U3Fm004669; Thu, 25 Sep 2008 20:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: John W Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 26 Sep 2008 03:30: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.12223993633363 (code B ref 1024); Fri, 26 Sep 2008 03:30:03 +0000 Original-Received: (at 1024) by emacsbugs.donarmstrong.com; 26 Sep 2008 03:22:43 +0000 Original-Received: from web56508.mail.re3.yahoo.com (web56508.mail.re3.yahoo.com [66.196.97.37]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8Q3MeYA003357 for <1024@emacsbugs.donarmstrong.com>; Thu, 25 Sep 2008 20:22:41 -0700 Original-Received: (qmail 91325 invoked by uid 60001); 26 Sep 2008 03:22:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=mfp6A/gI9NFYHOKbmGR6OvmJyNyH9OJ22o0dFARUJFhjLfNE8IH7/M2XnMt8n6jyTM7hM0czDQ0CaYyV8RGO0HqQ6705LbGJ4Yya0/DI4g+SUq8tfSPY477BKmrU78IrVPWCbxAOrEqyPzp0UWpKMB+B1KJ+TpBhbfsOE90JlCE=; X-YMail-OSG: 8D3lOjcVM1n7dHUhEJl5LdTJ5EG.wnUpcWw8hJtxsL5vPtMjMkW2_S16p1IpObaedw-- Original-Received: from [24.20.200.113] by web56508.mail.re3.yahoo.com via HTTP; Thu, 25 Sep 2008 20:22:34 PDT X-Mailer: YahooMailWebService/0.7.218.2 In-Reply-To: <48DB8026.4040201@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 25 Sep 2008 23:50:24 -0400 X-Mailman-Approved-At: Fri, 26 Sep 2008 00:03:30 -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:20795 Archived-At: > 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 but it made no difference; it is still slow, and when I examine the stack, it is the same stack trace. The file loads in 2 seconds in fundamental mode, but takes about 2 minutes in C++ mode. I should have mentioned that this is a preprocessed C++ file, with many compiler directies, such as #line 1 "somefile.h", and I now think the problem is provoked by the compiler directives. If I globally replace the #line stuff like so: #line 1 "some_file.h" --> s = "some_file.h" the file loads in about 7 seconds. - John