From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: open large file with C code: is it realy should be so slow? Date: Tue, 06 Jan 2009 20:16:50 -0500 Message-ID: <87aba3kj99.fsf@cyd.mit.edu> References: <87mye5kmm3.fsf@cyd.mit.edu> 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 1231291021 2421 80.91.229.12 (7 Jan 2009 01:17:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2009 01:17:01 +0000 (UTC) Cc: bug-cc-mode@gnu.org, acm@muc.de, davemilter@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Wed Jan 07 02:18:12 2009 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by lo.gmane.org with esmtp (Exim 4.50) id 1LKN3h-0002jy-F3 for sf-cc-mode-help@m.gmane.org; Wed, 07 Jan 2009 02:18:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LKN2R-0006Sv-Vw; Wed, 07 Jan 2009 01:16:51 +0000 Original-Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LKN2R-0006Sm-8s for cc-mode-help@lists.sourceforge.net; Wed, 07 Jan 2009 01:16:51 +0000 X-ACL-Warn: Original-Received: from fencepost.gnu.org ([140.186.70.10]) by 1b2kzd1.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1LKN2O-0003oS-Cy for cc-mode-help@lists.sourceforge.net; Wed, 07 Jan 2009 01:16:50 +0000 Original-Received: from mail.gnu.org ([199.232.76.166]:41467 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LKN1E-0004Ff-MW for bug-cc-mode@gnu.org; Tue, 06 Jan 2009 20:15:36 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LKN2L-0006eu-CG for bug-cc-mode@gnu.org; Tue, 06 Jan 2009 20:16:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Original-Received: from cyd.mit.edu ([18.115.2.24]:35789) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LKN2J-0006eA-FM; Tue, 06 Jan 2009 20:16:44 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 9052657E1D7; Tue, 6 Jan 2009 20:16:51 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Tue, 06 Jan 2009 17:59:39 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Spam-Score: -4.0 (----) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -4.0 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [140.186.70.10 listed in list.dnswl.org] X-Headers-End: 1LKN2O-0003oS-Cy X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:5282 gmane.emacs.devel:107683 Archived-At: Richard M Stallman writes: > I just did some testing and I am obliged to modify my complaint. It > seems that the slowness is mainly in _loading_ C mode. > > Visiting buffer.h, when it is the first C file I visit, just took 20 > seconds. However, once C mode is loaded, visiting buffer.h again is > pretty fast. Loading cc-mode in Emacs 23 takes 0.33 seconds on my current laptop (about 0.3 seconds for Emacs 22). Apparently, the netbook you are using (Lemote Yeeloong) has a 600-800 MHz processor. That shouldn't be so slow as to yield 20 second loading times. There's likely something strange going on. Could you try with Emacs 22 and see if the problem recurs there? ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB