From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Newsgroups: gmane.emacs.help Subject: Re: 22.2 slower than 21.3 Date: Mon, 1 Sep 2008 01:14:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <046c5ebb-a045-4b0b-9020-436452d80158@l64g2000hse.googlegroups.com> References: <217aa644-6378-4fa1-992b-8d5af4edcfb5@m73g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1220258551 23698 80.91.229.12 (1 Sep 2008 08:42:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 08:42:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 01 10:43:20 2008 Return-path: Envelope-to: geh-help-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 1Ka50D-0005ZA-73 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 10:43:13 +0200 Original-Received: from localhost ([127.0.0.1]:59827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka4z8-0002GX-81 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 04:42:06 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l64g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 71 Original-NNTP-Posting-Host: 62.70.2.252 Original-X-Trace: posting.google.com 1220256843 2017 127.0.0.1 (1 Sep 2008 08:14:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 1 Sep 2008 08:14:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l64g2000hse.googlegroups.com; posting-host=62.70.2.252; posting-account=dW57HQoAAADk4fCqYpIqOMZ2vxYbu-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161825 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57167 Archived-At: Hi Alan! On Aug 29, 4:27=A0pm, Alan Mackenzie wrote: > 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. =A0It was this: OK, didn't know there was a new CC-mode. > > Will this get faster in upcoming versions? The problem could perhaps > > also be that the binary for Windows was built differently. =A0Have > > others seen the same as me? > > Could you give me some figures, please? =A0_HOW_ much slower is the new C= C > mode? =A0Could you please do: > (i) C-x C-f for a large C file please, one stored on your local hard > =A0 drive. =A0Then kill the buffer with C-x k, thus ensuring the file is = in > =A0 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. =A0How long does this > =A0 take? > (iv) State how large the file is, and what make and speed of CPU you > =A0 have. I only loaded a file of 518k, a C-file of about 10000 lines. I tried now and it takes about 5 seconds to load in 22.2, actually 6 seconds if I don't use reverse video (which I normally use). The 22.2.91 version takes less than 1 second. > If there is a real problem here, like files taking 1 minute to load, > it'll get fixed. =A0If 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. OK, so this is only a few seconds difference. Now I concatenated the file I had to get a larger C-file of 2 MB: 2.22: 17 seconds 2.22.91: 0.8 seconds I loaded the file first, then killed the buffer and then I timed the loading. With 2.22.91 I get another problem though, with SLIME: --- An error has occurred while loading `e:/home/rfo/.emacs': Wrong number of arguments: (lambda (&optional contribs) Setup Emacs so that lisp-mode buffers always use SLIME. CONTRIBS is a list of contrib packages to load. (when (member (quote lisp-mode) slime-lisp-modes) (add-hook (quote lisp-mode-hook) (quote slime-lisp-mode-hook))) (when contribs (add-to-list (quote load-path) (expand-file-name contrib slime-path)) (dolist (c contribs) (require c) (let ((init (intern (format %s-init c)))) (when (fboundp init) (funcall init)))))), 2 --- This does not happen in 21.3 or 22.2. Regards, -Robert