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: How can I predict which regions xdisp will present me for font-locking? Date: Tue, 13 Mar 2012 21:00:27 +0000 Message-ID: <20120313210027.GC2536@acm.acm> References: <20120311205903.GA3717@acm.acm> <83d38iyfox.fsf@gnu.org> <834nttya1l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1331672512 436 80.91.229.3 (13 Mar 2012 21:01:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2012 21:01:52 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 13 22:01:50 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7Yqp-0007u1-29 for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 22:01:47 +0100 Original-Received: from localhost ([::1]:33271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Yqo-0000mU-5t for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 17:01:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Yqf-0000ki-TI for emacs-devel@gnu.org; Tue, 13 Mar 2012 17:01:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7YqZ-0002sm-BO for emacs-devel@gnu.org; Tue, 13 Mar 2012 17:01:37 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:53050 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7YqZ-0002sR-1V for emacs-devel@gnu.org; Tue, 13 Mar 2012 17:01:31 -0400 Original-Received: (qmail 48156 invoked by uid 3782); 13 Mar 2012 21:01:28 -0000 Original-Received: from acm.muc.de (pD951B273.dip.t-dialin.net [217.81.178.115]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 13 Mar 2012 22:01:23 +0100 Original-Received: (qmail 4694 invoked by uid 1000); 13 Mar 2012 21:00:27 -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:149014 Archived-At: Hello again, John. On Tue, Mar 13, 2012 at 03:50:31PM -0400, John Yates wrote: > On Mon, Mar 12, 2012 at 2:00 PM, Eli Zaretskii wrote: > > Can you give more quantitative description of the slowdown?  E.g., how > > much time does it take to move the cursor by one character or one > > line, or to insert or delete a single character? > My work machine (4 year old technology): > o Intel Core2 Duo E8400 (Wolfdale) > - dual core, 3GHz, 6MB shared L2, no L3 > - 8GB DDr2 via separate Northbridge chip > Barely tolerable, perceptible delay inserting characters > Home machine (3 year old technology): > o AMD Phenom II x4 945 > - quad core, 3GHz, 512KB private L2, 6 MB shared L3 > - 8GB DDR2 via low latency on-chip memory controller > Really painful, at least a second to insert a single character. This is in CC Mode, right? It would be _really_ helpful to have a description of which characters (e.g., comma, semicolon) are slow, and what the buffer looks like in the vicinity of the slowness. Is there a dearth of semicolons and/or braces there? For example, I'm struggling with getting the speed up on a 3355 line C++ macro. Typing a comma towards the end of it is taking ~0.89 seconds on my hardware (similarly specced to your home machine). > The other thing I am noticing on both machine is that when I use > keyboard repeat to "C-n" or arrow down I get scrolling behaves akin to > an iPhone: after I release my key a large number of buffered input > events continue the scrolling. Is this in general, or in CC Mode? In my mega-macro, I can't reproduce this. > > If you replace cc-mode Lisp files in v24 with those in v23, does the > > problem go away? > I am really not able to do so. I do not build emacs from scratch. I > simply run the current state of Julien Danjou's emacs-snapshot on > Ubuntu (11.04 at home, 11.10 at work). I put in a considerable speed up to (long) macros on 1st March, and another speed up on 2nd March. Could it perhaps be that the snapshot you use hasn't yet been updated for these? > /john -- Alan Mackenzie (Nuremberg, Germany).