From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.help Subject: Re: 22.2 slower than 21.3 Date: Fri, 29 Aug 2008 14:27:25 +0000 Message-ID: <20080829142725.GA1053@muc.de> References: <217aa644-6378-4fa1-992b-8d5af4edcfb5@m73g2000hsh.googlegroups.com> Reply-To: bug-cc-mode@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220019851 5966 80.91.229.12 (29 Aug 2008 14:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 14:24:11 +0000 (UTC) Cc: bug-cc-mode@gnu.org, help-gnu-emacs@gnu.org To: Robert Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Fri Aug 29 16:25:01 2008 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZ4uI-0006OI-M0 for sf-cc-mode-help@m.gmane.org; Fri, 29 Aug 2008 16:24:59 +0200 Original-Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id D39CDFDCE; Fri, 29 Aug 2008 07:23:57 -0700 (PDT) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1KZ4tI-00008f-7E for cc-mode-help@lists.sourceforge.net; Fri, 29 Aug 2008 07:23:56 -0700 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1KZ4tG-0004n5-Mo for cc-mode-help@lists.sourceforge.net; Fri, 29 Aug 2008 07:23:56 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:43036) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KZ4rg-0000qm-1z for bug-cc-mode@gnu.org; Fri, 29 Aug 2008 10:22:16 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KZ4t3-0007iu-VG for bug-cc-mode@gnu.org; Fri, 29 Aug 2008 10:23:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,SPF_PASS autolearn=ham version=3.1.0 Original-Received: from colin.muc.de ([193.149.48.1]:1048 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZ4t3-0007hO-Cm for bug-cc-mode@gnu.org; Fri, 29 Aug 2008 10:23:41 -0400 Original-Received: (qmail 72858 invoked by uid 3782); 29 Aug 2008 14:23:35 -0000 Original-Received: from acm.muc.de (pD9E51BB2.dip.t-dialin.net [217.229.27.178]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 29 Aug 2008 16:23:35 +0200 Original-Received: (qmail 8584 invoked by uid 1000); 29 Aug 2008 14:27:25 -0000 Content-Disposition: inline In-Reply-To: <217aa644-6378-4fa1-992b-8d5af4edcfb5@m73g2000hsh.googlegroups.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:5232 gmane.emacs.help:57086 Archived-At: Hi, Robert! On Fri, Aug 29, 2008 at 01:06:52AM -0700, Robert wrote: > Hi, > I just installed 22.2 (pre-built binary for Windows XP), but find it > slower than 21.3. I notice when opening C-files. I went straight back > to 21.3 now because of that. There was a bug in older CC Modes which made it "necessary" to scan entire buffers when loading them. It was this: ######################################################################### put the following into a C file, somewhere near the beginning: #warning for isn't a keyword here. This will foul up the font locking in the rest of the file. Even more dramatically, insert this: #warning for isn't a keyword here. ( //#warning for isnt a keyword here. void foo (bar) { #error Brace yourself! } printf ("Hello, world!\n") ; /* the famous one liner! */ } Now the paren matching functions are fouled up. ######################################################################### However, the fix for this this shouldn't make Emacs that much slower to load. On my 1.2 GHz Athlon, it added around 1 second per Mbyte of C buffer. > I have not been following this group regularly, is this a well known > issue? No. At least, not yet. :-) > Will this get faster in upcoming versions? The problem could perhaps > also be that the binary for Windows was built differently. Have > others seen the same as me? Could you give me some figures, please? _HOW_ much slower is the new CC mode? Could you please do: (i) C-x C-f for a large C file please, one stored on your local hard drive. Then kill the buffer with C-x k, thus ensuring the file is in the file system cache, if any. (ii) Do C-x C-f for this file again, and say how long it takes. (iii) Do C-x C-f for the same file in Emacs 21.x. How long does this take? (iv) State how large the file is, and what make and speed of CPU you have. Thanks! If there is a real problem here, like files taking 1 minute to load, it'll get fixed. If it's a case of the loading feeling a bit sluggish (an extra 1 or 2 seconds to load), it may be possible to optimise things a bit. Look forward to hearing from you! [P.S. It would be helpful if you could put "C Mode" or "a C file" or something like that in the subject line for things like this. That way, I'm less likely to miss it.] > -Robert -- Alan Mackenzie (Nuremberg, Germany). ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/