From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Slow fontification in C mode buffers Date: Wed, 21 Dec 2011 18:06:52 +0000 Message-ID: <20111221180652.GB2778@acm.acm> References: <20111215134332.GA5698@acm.acm> <87y5udizdy.fsf@isil.kanru.info> <20111215181215.GA3464@acm.acm> <87ty51i6vf.fsf@isil.kanru.info> <20111216112617.GA3445@acm.acm> <87pqfngp3r.fsf@isil.kanru.info> <20111221105626.GA3263@acm.acm> <20111221160406.GA2629@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1324491204 7600 80.91.229.12 (21 Dec 2011 18:13:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 18:13:24 +0000 (UTC) Cc: Kan-Ru Chen , emacs-devel@gnu.org To: Geoff Gole Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 19:13:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RdQfF-0000lR-Ik for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2011 19:13:17 +0100 Original-Received: from localhost ([::1]:33836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQfE-00030u-NF for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2011 13:13:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQf6-00030K-Q4 for emacs-devel@gnu.org; Wed, 21 Dec 2011 13:13:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdQf0-0005gL-W7 for emacs-devel@gnu.org; Wed, 21 Dec 2011 13:13:08 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:12485 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdQf0-0005gG-Kr for emacs-devel@gnu.org; Wed, 21 Dec 2011 13:13:02 -0500 Original-Received: (qmail 50082 invoked by uid 3782); 21 Dec 2011 18:13:00 -0000 Original-Received: from acm.muc.de (pD95567D9.dip.t-dialin.net [217.85.103.217]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 21 Dec 2011 19:12:59 +0100 Original-Received: (qmail 6235 invoked by uid 1000); 21 Dec 2011 18:06:52 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146906 Archived-At: Hi, Geoff. On Thu, Dec 22, 2011 at 12:48:53AM +0800, Geoff Gole wrote: > > If you're running GNU Emacs, an optimisation was introduced in Emacs > > 23.3 which gave a considerable speed-up to such code.  This optimisation > > found its way into the XEmacs CC Mode package in September.  I _hope_ > > your version of Emacs is prior to one of these, in which case upgrading > > will give you this benefit. > > Otherwise, I'll be asking you if you're prepared to give me some > > timings. > Well, M-x version gives me GNU Emacs 24.0.91.1 (i686-pc-linux-gnu, > GTK+ Version 2.12.12) of 2011-11-18, and cc-defs.el has c-version at > 5.32.2. > I'd be happy to produce timings. What do you need? Let's just agree on what we mean by "very slow". I've just loaded gl_mangle.h into an Emacs 24 pretest. I've got a 2.6 GHz Athlon II processor. On doing M->, followed by scrolling a up a page at a time, each operation is taking me less than 1 second. Of course, once a page gets fontified, scrolling over it then becomes instantaneous. How fast/slow is this scrolling on your hardware/software? -- Alan Mackenzie (Nuremberg, Germany).