GNU bug report logs - #11545
24.0.96-mac-2.92; Strange speed problem scrolling in C++ code

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: John Wiegley <jwiegley@HIDDEN>; dated Wed, 23 May 2012 07:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Jun 2012 14:04:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 11 10:04:53 2012
Received: from localhost ([127.0.0.1]:37953 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Se5Ej-0001Zi-6V
	for submit <at> debbugs.gnu.org; Mon, 11 Jun 2012 10:04:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57702)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1Se5Eg-0001ZZ-20
	for submit <at> debbugs.gnu.org; Mon, 11 Jun 2012 10:04:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1Se5C1-00040F-5F
	for submit <at> debbugs.gnu.org; Mon, 11 Jun 2012 10:02:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:36845)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1Se5C0-000408-Vx
	for submit <at> debbugs.gnu.org; Mon, 11 Jun 2012 10:02:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56333)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1Se5Br-0002du-74
	for bug-gnu-emacs@HIDDEN; Mon, 11 Jun 2012 10:02:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1Se5Bp-0003y2-8J
	for bug-gnu-emacs@HIDDEN; Mon, 11 Jun 2012 10:01:54 -0400
Received: from mail-yx0-f169.google.com ([209.85.213.169]:36292)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>)
	id 1Se5Bf-0003uZ-2b; Mon, 11 Jun 2012 10:01:43 -0400
Received: by yenm7 with SMTP id m7so2977360yen.0
	for <multiple recipients>; Mon, 11 Jun 2012 07:01:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:date:references:x-gnus-delayed:message-id
	:user-agent:mime-version:content-type;
	bh=JvpXvrKQmM5scxVv3Ze/aOghbUcct4e+sDZzvILV6JM=;
	b=cq5jNQ+56qgalsJQbAE8hRdnc9PC+J+/eknRWUCB6UxizQMQQCDJ0E3XELADxArxYp
	a2UlhCb+bVzD+NRnJag50dHsse5bztZb9KmrVNtAPwVpEMvJzx/UT2ixN6HMvFtpDwpR
	rNVwyN3J5kaHFWhrfhj7SKNzhUC8QOWBS1tA5yO8O+eENSvkNjTNcCXEmd9MOH4L3h9q
	KH+DMTh/sGmXzZtQ6ySA9rVAvvZIT5wYZnYrBy1EIxofvqMaxB+CPEMryc5glWMUSGtt
	iMYROgL+htGTgTMgrzO9nIYtQpIoF3ZFT6sWEqnAwyGHw2Ol/PJyvAexTYngEBTU0Nsl
	vVyQ==
Received: by 10.236.153.40 with SMTP id e28mr17910674yhk.99.1339423299513;
	Mon, 11 Jun 2012 07:01:39 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id g4sm56257627yhf.12.2012.06.11.07.01.38
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 11 Jun 2012 07:01:38 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id 37FE9EE38EC1; Mon, 11 Jun 2012 09:01:37 -0500 (CDT)
From: John Wiegley <jwiegley@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code
Date: Mon, 11 Jun 2012 08:31:23 -0500
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <m24nqzx5xw.fsf@HIDDEN>
	<20120602212028.GA8233@HIDDEN>
X-Gnus-Delayed: Mon, 11 Jun 2012 09:31:22 -0500
Message-ID: <m2d356hrr2.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
Cc: bug-cc-mode@HIDDEN, bug-gnu-emacs@HIDDEN,
	mituharu+bug-gnu-emacs-mac@HIDDEN,
	YAMAMOTO Mitsuharu <mituharu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

>>>>> Alan Mackenzie <acm@HIDDEN> writes:

>> To the CC-Mode maintainers: is there a way to disable the slower, "more
>> correct" mode in the latest CC-Mode, and go back to the entirely sufficient
>> (for me) mode of previous versions?

> Not as such, no.  The only workaround at the moment is to use a
> "pre-correct" version of CC Mode in place of an up to date one.

Ok, I've done that (am now using the version of cc-mode from 23.4 in my 24.1
Emacs, and everything is super-snappy again).

> Anyhow, I've got the problem flagged as a bug now.  Thanks again for
> reporting it.

Thanks!  Just FYI: This doesn't just make scrolling laggy.  I have some long C
files which, if I add a statement that breaks up the fontification (for
example, I'm writing code that isn't yet valid), the buffer slows down to the
point that it takes up to 20 seconds for Emacs to register each keypress!  The
old cc-mode doesn't have this problem at all.

Thanks again,
  John




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jun 2012 21:32:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 17:32:00 2012
Received: from localhost ([127.0.0.1]:54985 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SavvS-0006dx-Lq
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:32:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51579)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <acm@HIDDEN>) id 1SavvP-0006dk-MY
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:31:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <acm@HIDDEN>) id 1SavtZ-0001Lg-7o
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:30:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:59880)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
	id 1SavtZ-0001Lc-5N
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 17:30:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57037)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
	id 1SavtX-0004v6-9z
	for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 17:30:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <acm@HIDDEN>) id 1SavtV-0001LJ-0C
	for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 17:29:58 -0400
Received: from colin.muc.de ([193.149.48.1]:33296 helo=mail.muc.de)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
	id 1SavtU-0001L2-Ln
	for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 17:29:56 -0400
Received: (qmail 31196 invoked by uid 3782); 2 Jun 2012 21:23:13 -0000
Received: from acm.muc.de (pD9519ED0.dip.t-dialin.net [217.81.158.208]) by
	colin.muc.de (tmda-ofmipd) with ESMTP;
	Sat, 02 Jun 2012 23:23:10 +0200
Received: (qmail 8278 invoked by uid 1000); 2 Jun 2012 21:20:29 -0000
Date: Sat, 2 Jun 2012 21:20:28 +0000
To: John Wiegley <jwiegley@HIDDEN>
Subject: Re: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code
Message-ID: <20120602212028.GA8233@HIDDEN>
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <m24nqzx5xw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m24nqzx5xw.fsf@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
Cc: bug-cc-mode@HIDDEN, bug-gnu-emacs@HIDDEN,
	mituharu+bug-gnu-emacs-mac@HIDDEN,
	YAMAMOTO Mitsuharu <mituharu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

Hello, John.

On Mon, May 28, 2012 at 06:05:15PM -0500, John Wiegley wrote:
> >>>>> John Wiegley <jwiegley@HIDDEN> writes:

> >>>>>> YAMAMOTO Mitsuharu <mituharu@HIDDEN> writes:
> >> With the Time Profiler in Instrument.app, I found that fontification
> >> of CC Mode in Emacs 24 is much heavier and causes frequent GCs than
> >> that in Emacs 23.  Please try the following:

> >>   1. Start Emacs 24 Mac port with -Q (alternatively, pressing the
> >>      shift key.)
> >>   2. M-x load-file PREFIX/share/emacs/23.4/lisp/progmodes/cc-fonts.elc
> >>      RTE.
> >>   3. Replay scrolling a large C++ file.

> >> I'm not sure if this slowdown is intended or expected.

> > Indeed, this makes the speed situation much better on Emacs 24.0.97.

> I can now confirm that loading CC-Mode 5.32.3 into Emacs 23.4 causes
> the identical speed issues that I was seeing with Emacs 24.0.97, so
> this is a performance issue in the latest CC-Mode, not a bug in Emacs
> 24 or with Mac-Port Emacs.

> To the CC-Mode maintainers: is there a way to disable the slower, "more
> correct" mode in the latest CC-Mode, and go back to the entirely
> sufficient (for me) mode of previous versions?

Not as such, no.  The only workaround at the moment is to use a
"pre-correct" version of CC Mode in place of an up to date one.

I've just done a binary chop on CC Mode versions, and it seems the latest
version before (?the first of) these enhancements was the one created by
this (mercurial) changeset (the repository can be downloaded from
<http://cc-mode.sourceforge.net>):

    changeset:   5109:981fa4f0270c
    parent:      5107:bd4013c5633b
    user:        acmacm
    date:        Wed Sep 15 17:47:52 2010 +0000
    files:       cc-engine.el
    description:
    (c-forward-<>-arglist-recur): Fix an infinite recursion.

To undo these changes would be difficult, since several later
enhancements and bug fixes are based on the new code.  I'll see if I can
find some way of optimising the offending code - most of the time it's
doing expensive checks and finding nothing.

Anyhow, I've got the problem flagged as a bug now.  Thanks again for
reporting it.

> Thanks,
>   John

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 May 2012 23:06:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 28 19:06:58 2012
Received: from localhost ([127.0.0.1]:47302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SZ91d-0004HZ-Ab
	for submit <at> debbugs.gnu.org; Mon, 28 May 2012 19:06:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59695)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1SZ91b-0004HO-8k
	for submit <at> debbugs.gnu.org; Mon, 28 May 2012 19:06:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SZ90C-0006Sc-Lx
	for submit <at> debbugs.gnu.org; Mon, 28 May 2012 19:05:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:51120)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SZ90C-0006SX-GL
	for submit <at> debbugs.gnu.org; Mon, 28 May 2012 19:05:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33384)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SZ90A-0001dN-Mn
	for bug-gnu-emacs@HIDDEN; Mon, 28 May 2012 19:05:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SZ908-0006Rc-SS
	for bug-gnu-emacs@HIDDEN; Mon, 28 May 2012 19:05:26 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:56025)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>)
	id 1SZ905-0006Qw-4a; Mon, 28 May 2012 19:05:21 -0400
Received: by obbwd18 with SMTP id wd18so7488056obb.0
	for <multiple recipients>; Mon, 28 May 2012 16:05:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=to:cc:subject:references:from:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=wy7Ph1FRGTfs9wjQej1pERdUJf5ZyT3iFCId06oBhSs=;
	b=bjDaSTDDT9+FEzc6ZAKSbx9TAOFWjb3C443y+QM4PehA4jzMxuPL/++lBfJ+BxpBLN
	dcOcygWaEn3syMyGBJigsOGAFu72/Rx8WsqBTKcigBGfXX4W4zh4j/N7gyxVck8GS2xB
	uyQA/KFxqZbqEFJWgUpW9hjI+ppo5SmBRxdCQqXnRNQ+bbV8ASNS0UfcKoRmFzHyCSHT
	jYvyfiFu0gFnriByx0Cq3LqGjyuQ7xbhFsHTyBi/B6AkJpg/UsdbUJPoXCP/bExyZrB9
	tr3O4F6eaH8RfF08czmynJHKjQhuv78at0lpiz3rJBkgn8Dkwma4bHwvYf/Wcxw5LwGc
	bWAA==
Received: by 10.50.217.193 with SMTP id pa1mr5456207igc.39.1338246317669;
	Mon, 28 May 2012 16:05:17 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id ud8sm12676010igb.4.2012.05.28.16.05.16
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 28 May 2012 16:05:16 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id 90753E8B484C; Mon, 28 May 2012 18:05:15 -0500 (CDT)
To: YAMAMOTO Mitsuharu <mituharu@HIDDEN>
Subject: Re: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN>
From: John Wiegley <jwiegley@HIDDEN>
Date: Mon, 28 May 2012 18:05:15 -0500
In-Reply-To: <m2hav7pdfi.fsf@HIDDEN> (John Wiegley's message of "Wed, 23
	May 2012 02:24:49 -0500")
Message-ID: <m24nqzx5xw.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
Cc: bug-cc-mode@HIDDEN, bug-gnu-emacs@HIDDEN,
	mituharu+bug-gnu-emacs-mac@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

>>>>> John Wiegley <jwiegley@HIDDEN> writes:

>>>>>> YAMAMOTO Mitsuharu <mituharu@HIDDEN> writes:
>> With the Time Profiler in Instrument.app, I found that fontification
>> of CC Mode in Emacs 24 is much heavier and causes frequent GCs than
>> that in Emacs 23.  Please try the following:
>> 
>>   1. Start Emacs 24 Mac port with -Q (alternatively, pressing the
>>      shift key.)
>>   2. M-x load-file PREFIX/share/emacs/23.4/lisp/progmodes/cc-fonts.elc
>>      RTE.
>>   3. Replay scrolling a large C++ file.
>> 
>> I'm not sure if this slowdown is intended or expected.
> 
> Indeed, this makes the speed situation much better on Emacs 24.0.97.

I can now confirm that loading CC-Mode 5.32.3 into Emacs 23.4 causes the
identical speed issues that I was seeing with Emacs 24.0.97, so this is a
performance issue in the latest CC-Mode, not a bug in Emacs 24 or with
Mac-Port Emacs.

To the CC-Mode maintainers: is there a way to disable the slower, "more
correct" mode in the latest CC-Mode, and go back to the entirely sufficient
(for me) mode of previous versions?

Thanks,
  John




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 26 May 2012 07:47:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 26 03:47:53 2012
Received: from localhost ([127.0.0.1]:43864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SYBj6-00057Z-Gd
	for submit <at> debbugs.gnu.org; Sat, 26 May 2012 03:47:53 -0400
Received: from mail-yw0-f44.google.com ([209.85.213.44]:61314)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1SYBik-000573-RL
	for 11545 <at> debbugs.gnu.org; Sat, 26 May 2012 03:47:50 -0400
Received: by yhq56 with SMTP id 56so1038784yhq.3
	for <11545 <at> debbugs.gnu.org>; Sat, 26 May 2012 00:46:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=to:cc:subject:references:from:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=6ejLAgKAtJcuYUNq2Q9LK9EjQdIdR2bDSyymYwGmdpI=;
	b=yaimFmT/BaRqR+c0HvnV3RLhvJpV31CInVoPXtPooew7ARZOQ1W7/i5Vk1kL2hg4u0
	NCPTqDDXDVN6OzOZZTdn7zre0TPic/quOHbCHsNEr0mBkEHZpYo63MoCNS8GCPxVoXiE
	AEYoTxHL5h+2lt0irir6VfdNK5gnhUbFPoFO3r9jzR5uVCMrqfehYwZYqK5suXp09aZZ
	utycHR1EPMPmVICAzLktYZQtOQaXAIA7kDZnMvmrWPwRTYaBqEEuIU+AQuohEQmCpRa5
	++X/p0FDAPi3H5VQ38AwjWhiLAYMjl+8DCbLsgh1pjWaj1YlQDveei2kGNDM0+xzBFXm
	tSQw==
Received: by 10.42.51.144 with SMTP id e16mr801267icg.54.1338018378898;
	Sat, 26 May 2012 00:46:18 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id gh2sm1581600igb.9.2012.05.26.00.46.16
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sat, 26 May 2012 00:46:17 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id 72D23E8319D6; Sat, 26 May 2012 02:46:15 -0500 (CDT)
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
	<n3ipfn5n4l.fsf@HIDDEN> <m2wr439oon.fsf@HIDDEN>
	<20120525214547.GA5177@HIDDEN>
From: John Wiegley <jwiegley@HIDDEN>
Date: Sat, 26 May 2012 02:46:15 -0500
In-Reply-To: <20120525214547.GA5177@HIDDEN> (Alan Mackenzie's message of
	"Fri, 25 May 2012 21:45:47 +0000")
Message-ID: <m2vcjjmlko.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 11545
Cc: Glenn Morris <rgm@HIDDEN>, mituharu+bug-gnu-emacs-mac@HIDDEN,
	11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

>>>>> Alan Mackenzie <acm@HIDDEN> writes:

> Could you possibly check this is the case in your file.c++ using elp.
> Here's a quick recipe in case you haven't used it before: [ M-x
> elp-instrument-package <ret> c- <ret>.  Scroll with C-v, either once or an
> arbitrary number of times.  M-x elp-results.]

Results attached below.

> The cost of this correct fontification is the "slight" sluggishness being
> seen here.  It is likely possible to optimise this function somewhat, though
> probably it's now too late for Emacs 24.1.

I'd rather forgo the correctness for the speed, since cc-mode has never been
100% correct, but it's always been correct enough.

John

Function Name                                  Call Count  Elapsed Time  Average Time
c-font-lock-fontify-region                     1529        31.313269999  0.0204795748
c-beginning-of-decl-1                          3657        11.680622999  0.0031940451
c-font-lock-declarations                       1529        11.070964000  0.0072406566
c-find-decl-spots                              1529        11.035531000  0.0072174826
c-context-set-fl-decl-start                    1529        10.549607     0.0068996775
c-set-fl-decl-start                            1529        10.542452999  0.0068949986
c-beginning-of-statement-1                     3910        9.8793279999  0.0025266823
c-backward-sws                                 123582      8.8908430000  7.194...e-05
c-crosses-statement-barrier-p                  15967       7.1756169999  0.0004494029
c-parse-state                                  14667       6.1785950000  0.0004212582
c-parse-state-1                                14667       5.6588790000  0.0003858238
c-font-lock-enclosing-decls                    1529        4.462361      0.0029184833
c-determine-limit                              5498        3.4111050000  0.0006204265
c-append-to-state-cache                        14467       2.5331440000  0.0001750980
c-remove-stale-state-cache                     14425       2.0322649999  0.0001408849
c-forward-decl-or-cast-1                       6632        1.9189249999  0.0002893433
c-beginning-of-macro                           164245      1.8161729999  1.105...e-05
c-forward-type                                 18312       1.5136799999  8.266...e-05
c-in-knr-argdecl                               3367        1.5124650000  0.0004492025
c-syntactic-skip-backward                      3882        1.3911049999  0.0003583475
c-font-lock-enum-tail                          1529        1.1747370000  0.0007683041
c-font-lock-complex-decl-prepare               1529        0.786506      0.0005143924
c-backward-token-2                             21271       0.7062790000  3.320...e-05
c-literal-limits                               25371       0.7047289999  2.777...e-05
c-at-macro-vsemi-p                             30271       0.7038709999  2.325...e-05
c-font-lock-declarators                        3723        0.6608859999  0.0001775143
c-forward-name                                 18056       0.5404579999  2.993...e-05
c-parse-state-get-strategy                     14667       0.4485610000  3.058...e-05
c-cheap-inside-bracelist-p                     5015        0.4087189999  8.149...e-05
c-forward-sws                                  60915       0.3506809999  5.756...e-06
c-syntactic-re-search-forward                  7741        0.2931619999  3.787...e-05
c-syntactic-content                            10849       0.2439560000  2.248...e-05
c-forward-token-2                              5974        0.2161999999  3.619...e-05
c-add-type                                     3181        0.1633079999  5.133...e-05
c-append-lower-brace-pair-to-state-cache       153         0.1180970000  0.0007718758
c-state-semi-safe-place                        7045        0.1104430000  1.567...e-05
c-remove-stale-state-cache-backwards           242         0.0868989999  0.0003590867
c-beginning-of-current-token                   8514        0.0621019999  7.294...e-06
c-looking-at-inexpr-block                      342         0.0573979999  0.0001678304
c-state-get-min-scan-pos                       14865       0.0395270000  2.659...e-06
c-get-fallback-scan-pos                        106         0.039258      0.0003703584
c-forward-label                                274         0.0353939999  0.0001291751
c-get-cache-scan-pos                           14667       0.0347800000  2.371...e-06
c-beginning-of-syntax                          250         0.0315929999  0.0001263719
c-font-lock-doc-comments                       3058        0.0247469999  8.092...e-06
c-safe-position                                4286        0.0241799999  5.641...e-06
c-state-literal-at                             267         0.0240109999  8.992...e-05
c-on-identifier                                694         0.0237040000  3.415...e-05
c-after-conditional                            79          0.0234840000  0.0002972658
c-syntactic-end-of-macro                       684         0.0193390000  2.827...e-05
c-forward-annotation                           6632        0.0187899999  2.833...e-06
c-skip-comments-and-strings                    7979        0.0155589999  1.949...e-06
c-punctuation-in                               636         0.0123149999  1.936...e-05
c-forward-keyword-clause                       831         0.0096369999  1.159...e-05
c-fontify-recorded-types-and-refs              6869        0.0094569999  1.376...e-06
c-state-safe-place                             267         0.0069390000  2.598...e-05
c-end-of-macro                                 2442        0.0062260000  2.549...e-06
c-font-lock-invalid-string                     1031        0.0052879999  5.129...e-06
c-end-of-current-token                         1207        0.0048019999  3.978...e-06
c-state-balance-parens-backwards               202         0.00426       2.108...e-05
c-most-enclosing-brace                         1789        0.0022139999  1.237...e-06
c-renarrow-state-cache                         10          0.0010699999  0.0001069999
c-state-mark-point-min-literal                 10          0.001004      0.0001003999
c-forward-single-comment                       37          0.0004699999  1.270...e-05
c-at-toplevel-p                                2           0.00028       0.00014
c-forward-to-cpp-define-body                   8           8.099...e-05  1.012...e-05
c-search-uplist-for-classkey                   2           1.2e-05       6e-06
c-leave-cc-mode-mode                           3           4.999...e-06  1.666...e-06




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 25 May 2012 21:49:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 25 17:49:52 2012
Received: from localhost ([127.0.0.1]:43673 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SY2ON-00007B-Ag
	for submit <at> debbugs.gnu.org; Fri, 25 May 2012 17:49:52 -0400
Received: from colin.muc.de ([193.149.48.1]:46961 helo=mail.muc.de)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <acm@HIDDEN>) id 1SY2O1-00006l-Nj
	for 11545 <at> debbugs.gnu.org; Fri, 25 May 2012 17:49:49 -0400
Received: (qmail 1421 invoked by uid 3782); 25 May 2012 21:48:23 -0000
Received: from acm.muc.de (pD95562B2.dip.t-dialin.net [217.85.98.178]) by
	colin.muc.de (tmda-ofmipd) with ESMTP;
	Fri, 25 May 2012 23:48:18 +0200
Received: (qmail 5504 invoked by uid 1000); 25 May 2012 21:45:47 -0000
Date: Fri, 25 May 2012 21:45:47 +0000
To: John Wiegley <jwiegley@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92; Strange speed problem scrolling in
	C++ code
Message-ID: <20120525214547.GA5177@HIDDEN>
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
	<n3ipfn5n4l.fsf@HIDDEN> <m2wr439oon.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m2wr439oon.fsf@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 11545
Cc: Glenn Morris <rgm@HIDDEN>, mituharu+bug-gnu-emacs-mac@HIDDEN,
	11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Hello John,

On Wed, May 23, 2012 at 05:28:24AM -0500, John Wiegley wrote:
> >>>>> Glenn Morris <rgm@HIDDEN> writes:

> > I see hundreds of lines of differences between the emacs-23 and emacs-24
> > branch versions of cc-fonts.

> Sorry, tool failure here.  Now I'm seeing:

>     660 insertions(+), 243 deletions(-)

> > PS The context for this bug report is missing; but I imagine the first thing
> > Alan will ask for is an example that shows how to reproduce the problem.

> Start either Emacs with -Q -nw.  Open a largish C++ file.  Hold down C-v.  On
> my laptop the lagginess was quite obvious, on my desktop a little less so.

This has been the case for some while, as you have said.

The offending function is probably c-font-lock-enclosing-decls, a
relatively new function.  c-f-l-e-decls solves the former problem of
misfontification when a jit-lock chunk started within (mainly) a
struct/enum/union/class/... and lacked the context to fontify correctly.
An example of this happening was the first enum construct in
.../emacs/src/gnutls.h.

Could you possibly check this is the case in your file.c++ using elp.
Here's a quick recipe in case you haven't used it before:
[ M-x elp-instrument-package <ret> c- <ret>.
  Scroll with C-v, either once or an arbitrary number of times.
  M-x elp-results.]

The cost of this correct fontification is the "slight" sluggishness being
seen here.  It is likely possible to optimise this function somewhat,
though probably it's now too late for Emacs 24.1.

> Thanks, John

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 22:28:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 18:28:37 2012
Received: from localhost ([127.0.0.1]:41097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SXK2n-00086P-BP
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 18:28:37 -0400
Received: from mail-gg0-f172.google.com ([209.85.161.172]:62728)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1SXK2l-00086C-KU
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 18:28:36 -0400
Received: by ggnc4 with SMTP id c4so6892654ggn.3
	for <11545 <at> debbugs.gnu.org>; Wed, 23 May 2012 15:27:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=to:cc:subject:references:from:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=BtSniL9natWFyAQcBZakujDhAwFR5FqdJ71WQgKVDCA=;
	b=QyOC3G/0vLlFL6HscvLgbMtwKvRlSVsCQuvHsBZR4zidakDMrv++UqVNvIUf/yiBap
	NAmlBdNnc7DW4fxjeHd4x/yXwTgrNDCfZV0AyZwXJnJ3RRTNl12Fpqap6k0mqjKVsbwd
	3eMC0rqHYiqQbbctbx580YElePSpw8ASyPozHMWGrNSM4YaDx8he71j6v2zh1iSRsnEh
	XrDjDmlXDOJNoqlVZ+U9H3/A+0skpmHeVxvpQm7SJaa/UBQxj5QH+8Fgwht5sFYUI8Eq
	7kTwW6jnJK+RssOMsX9lhVeKIoxMkzivcku0CKFFGAyKnMQTRpk/XnsLkja6/awDazc9
	GPDQ==
Received: by 10.50.156.228 with SMTP id wh4mr12497161igb.47.1337812057438;
	Wed, 23 May 2012 15:27:37 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id vw5sm318144igb.13.2012.05.23.15.27.35
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 23 May 2012 15:27:35 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id 5E4EDE5AF3D5; Wed, 23 May 2012 17:27:34 -0500 (CDT)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
	<n3ipfn5n4l.fsf@HIDDEN> <m2wr439oon.fsf@HIDDEN>
	<83boleyisb.fsf@HIDDEN>
From: John Wiegley <jwiegley@HIDDEN>
Date: Wed, 23 May 2012 17:27:34 -0500
In-Reply-To: <83boleyisb.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 23 May
	2012 19:16:36 +0300")
Message-ID: <m2obpea5yh.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 11545
Cc: rgm@HIDDEN, mituharu+bug-gnu-emacs-mac@HIDDEN,
	11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

>> Start either Emacs with -Q -nw.  Open a largish C++ file.  Hold down C-v.
>> On my laptop the lagginess was quite obvious, on my desktop a little less
>> so.

> Does the sluggishness go away if, right after starting Emacs, you type "M-x
> global-font-lock-mode RET" to disable font-lock, and _then_ visit that
> largish C++ file?

Yes.  With font-lock off, it is buttery smooth.

So it looks like either the new cc-mode, or Emacs 24, is causing lots of
GC'ing when lazy fontifying a large C++ header.  And in fact, this header is
mostly C, so there's nothing complex in it like templates to throw cc-mode off
the mark.

John




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 16:18:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 12:18:05 2012
Received: from localhost ([127.0.0.1]:40832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SXEGD-0007Nb-GV
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 12:18:05 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:58635)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1SXEFr-0007Mh-88
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 12:18:03 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0M4H00B00H4WJC00@HIDDEN> for
	11545 <at> debbugs.gnu.org; Wed, 23 May 2012 19:16:25 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0M4H00BQNH7B8W40@HIDDEN>;
	Wed, 23 May 2012 19:16:23 +0300 (IDT)
Date: Wed, 23 May 2012 19:16:36 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
In-reply-to: <m2wr439oon.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: John Wiegley <jwiegley@HIDDEN>
Message-id: <83boleyisb.fsf@HIDDEN>
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
	<n3ipfn5n4l.fsf@HIDDEN> <m2wr439oon.fsf@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 11545
Cc: rgm@HIDDEN, mituharu+bug-gnu-emacs-mac@HIDDEN,
	11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Wed, 23 May 2012 05:28:24 -0500
> Cc: mituharu+bug-gnu-emacs-mac@HIDDEN, 11545 <at> debbugs.gnu.org
> 
> Start either Emacs with -Q -nw.  Open a largish C++ file.  Hold down C-v.  On
> my laptop the lagginess was quite obvious, on my desktop a little less so.

Does the sluggishness go away if, right after starting Emacs, you type
"M-x global-font-lock-mode RET" to disable font-lock, and _then_ visit
that largish C++ file?




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 10:29:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 06:29:43 2012
Received: from localhost ([127.0.0.1]:40392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SX8p5-00070B-8Q
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 06:29:43 -0400
Received: from mail-gh0-f172.google.com ([209.85.160.172]:63921)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1SX8ok-0006zf-NI
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 06:29:41 -0400
Received: by ghbg16 with SMTP id g16so1122244ghb.3
	for <11545 <at> debbugs.gnu.org>; Wed, 23 May 2012 03:28:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=to:cc:subject:references:from:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=M8LBVkPXfkqGj5IZDtIdGPhuoAH7zDc5K/B2elstduo=;
	b=QX3ktkhh5/GWDMy5xPnSZUL2rsQnOufQZWKUlzeK/NsPpMQUS0V8Q2SLNoyC26g594
	sUq5eT8eyTZFwvdsV6RXdmNc1HTDOugAJ5TpwpHb/C03UYr2jbLiHOBrZXfWoHvoqI8f
	Fbyaoxpbd8CNYYI72cIRuP91aPXl3YKntwRyn8VyhsOYH6YFOTYKmDlaq6gllmb0tWqO
	RvZOYmfFzEJ8CB3286L4tyXL2lF5ONTJ4wRv54vc2eYqh8Dn6QVIkIN8+u3s9AnpVQzy
	qMbKcbjhYmF1OX0CFllTvhknHzGAVL9Ctgt6X9VIjA6UxJojpiAlb283vSpUTvpPGsEh
	KhhQ==
Received: by 10.50.42.130 with SMTP id o2mr12556994igl.37.1337768906928;
	Wed, 23 May 2012 03:28:26 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id ch5sm12486079igb.0.2012.05.23.03.28.25
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 23 May 2012 03:28:26 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id A9101E49B26C; Wed, 23 May 2012 05:28:24 -0500 (CDT)
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
	<n3ipfn5n4l.fsf@HIDDEN>
From: John Wiegley <jwiegley@HIDDEN>
Date: Wed, 23 May 2012 05:28:24 -0500
In-Reply-To: <n3ipfn5n4l.fsf@HIDDEN> (Glenn Morris's message of
	"Wed, 23 May 2012 04:15:38 -0400")
Message-ID: <m2wr439oon.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 11545
Cc: mituharu+bug-gnu-emacs-mac@HIDDEN, 11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

>>>>> Glenn Morris <rgm@HIDDEN> writes:

> I see hundreds of lines of differences between the emacs-23 and emacs-24
> branch versions of cc-fonts.

Sorry, tool failure here.  Now I'm seeing:

    660 insertions(+), 243 deletions(-)

> PS The context for this bug report is missing; but I imagine the first thing
> Alan will ask for is an example that shows how to reproduce the problem.

Start either Emacs with -Q -nw.  Open a largish C++ file.  Hold down C-v.  On
my laptop the lagginess was quite obvious, on my desktop a little less so.

Thanks, John




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 08:16:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 04:16:50 2012
Received: from localhost ([127.0.0.1]:40308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SX6kU-00040U-5B
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 04:16:50 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:57558 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1SX6k9-000400-VR
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 04:16:48 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1SX6jK-0002i7-Ri; Wed, 23 May 2012 04:15:38 -0400
From: Glenn Morris <rgm@HIDDEN>
To: John Wiegley <jwiegley@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN> <jt7gw3s5be.fsf@HIDDEN>
X-Spook: Kh-11 64 Vauxhall Cross fissionable Delta Force SDI
X-Ran: R);0^U~Ga2Ld*0e1;>y9&itA&]5S{g]z3NefUob$d:#9Q`y)s;>FS@G|$(&&BgBJGpgZMQ
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 23 May 2012 04:15:38 -0400
In-Reply-To: <jt7gw3s5be.fsf@HIDDEN> (Glenn Morris's message of
	"Wed, 23 May 2012 03:51:49 -0400")
Message-ID: <n3ipfn5n4l.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 11545
Cc: mituharu+bug-gnu-emacs-mac@HIDDEN, 11545 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)


PS The context for this bug report is missing; but I imagine the first
thing Alan will ask for is an example that shows how to reproduce the
problem.




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 07:52:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 03:52:41 2012
Received: from localhost ([127.0.0.1]:40302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SX6N7-0003TU-79
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:52:41 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:56804 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1SX6N5-0003TM-3w
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 03:52:39 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1SX6MH-0004rK-AY; Wed, 23 May 2012 03:51:49 -0400
From: Glenn Morris <rgm@HIDDEN>
To: John Wiegley <jwiegley@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN>
X-Spook: encryption Saudi Arabia enforcers Maple bullion
X-Ran: s>HkBY0YI}]E0\EL9QhBk}onzJoXiE9I[48OR~&\\ZtMGoc35c|Q`q@fUIS,g\5k7ubcw*
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 23 May 2012 03:51:49 -0400
In-Reply-To: <m2hav7pdfi.fsf@HIDDEN> (John Wiegley's message of "Wed, 23
	May 2012 02:24:49 -0500")
Message-ID: <jt7gw3s5be.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 11545
Cc: mituharu+bug-gnu-emacs-mac@HIDDEN, 11545 <at> debbugs.gnu.org,
	YAMAMOTO Mitsuharu <mituharu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

John Wiegley wrote:

> The strange thing is, cc-fonts.el.gz is identical between Emacs 23.4
> and Emacs 24.0.97!

I see hundreds of lines of differences between the emacs-23 and emacs-24
branch versions of cc-fonts.




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#11545; Package emacs,cc-mode. Full text available.

Message received at 11545 <at> debbugs.gnu.org:


Received: (at 11545) by debbugs.gnu.org; 23 May 2012 07:36:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 03:36:35 2012
Received: from localhost ([127.0.0.1]:40297 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SX67W-00037S-6b
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:36:34 -0400
Received: from mail-out.m-online.net ([212.18.0.10]:41012)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <whitebox@HIDDEN>) id 1SX67B-000373-1C
	for 11545 <at> debbugs.gnu.org; Wed, 23 May 2012 03:36:32 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 3Vy59M6Jd7z3hhY3;
	Wed, 23 May 2012 09:35:18 +0200 (CEST)
Received: from igel.home (ppp-93-104-137-42.dynamic.mnet-online.de
	[93.104.137.42])
	by mail.mnet-online.de (Postfix) with ESMTPA id 3Vy59L0Lf9z4KK9L;
	Wed, 23 May 2012 09:35:18 +0200 (CEST)
Received: by igel.home (Postfix, from userid 501)
	id 95045CA2A2; Wed, 23 May 2012 09:35:17 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: John Wiegley <jwiegley@HIDDEN>
Subject: Re: bug#11545: 24.0.96-mac-2.92;
	Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
	<m2hav7pdfi.fsf@HIDDEN>
X-Yow: I don't think you fellows would do so much RAPING and PILLAGING if you
	played more PINBALL and watched CABLE TELEVISION!!
Date: Wed, 23 May 2012 09:35:17 +0200
In-Reply-To: <m2hav7pdfi.fsf@HIDDEN> (John Wiegley's message of "Wed, 23
	May 2012 02:24:49 -0500")
Message-ID: <m2bolf1hai.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 11545
Cc: bug-cc-mode@HIDDEN, mituharu+bug-gnu-emacs-mac@HIDDEN,
	11545 <at> debbugs.gnu.org, YAMAMOTO Mitsuharu <mituharu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

John Wiegley <jwiegley@HIDDEN> writes:

> The strange thing is, cc-fonts.el.gz is identical between Emacs 23.4 and Emacs
> 24.0.97!  Only the .elc's differ.

Do they also differ semantically?

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#11545; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 May 2012 07:26:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 23 03:26:24 2012
Received: from localhost ([127.0.0.1]:40292 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SX5xg-0002sQ-2g
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:26:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59546)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jwiegley@HIDDEN>) id 1SX5xd-0002s9-Uw
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:26:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SX5wg-0007I2-VT
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:25:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:46181)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SX5wg-0007Hw-QF
	for submit <at> debbugs.gnu.org; Wed, 23 May 2012 03:25:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49974)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SX5wZ-0002U0-5X
	for bug-gnu-emacs@HIDDEN; Wed, 23 May 2012 03:25:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>) id 1SX5wU-0007Gh-7I
	for bug-gnu-emacs@HIDDEN; Wed, 23 May 2012 03:25:14 -0400
Received: from mail-gg0-f169.google.com ([209.85.161.169]:62924)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jwiegley@HIDDEN>)
	id 1SX5wL-00072s-UN; Wed, 23 May 2012 03:25:02 -0400
Received: by ggm4 with SMTP id 4so7493227ggm.0
	for <multiple recipients>; Wed, 23 May 2012 00:24:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=to:cc:subject:references:from:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=ZFIZxfESNihaoaYOxz8Grcj8PoVCY1D3UZW9kT9pj08=;
	b=bfItys63fTFYckPc1/S1uoVtMQxtelHsalxb2P7KllACwViPOLjR0xujOefi6Dfecz
	4LZivBktXeeBXlfJ9Tl5QHldGHkFpfh7VJn8FAGdvB9ibN9qV0juXNSUY6Lcdy22Kkc/
	04EG6D4mYH+bLry0elDZX2oJ0VAnoQFNnBb10EMwkHCzEWoBi5NvZjphB7JlYNAxTRyU
	fBVgpD36wacG2IxkI3jihPd5NkACY0G+G7bbL9jkxOS1PuCkyvE8SE2QE07GlwbnpWpK
	+lBzYWP/JH6C13dKfRqv1p/aCRWmEKpAIO3MbvL0rWjEGHHTh67i36XJW6v7RUvI8uLD
	z0pQ==
Received: by 10.50.149.225 with SMTP id ud1mr11922290igb.74.1337757892673;
	Wed, 23 May 2012 00:24:52 -0700 (PDT)
Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net.
	[98.215.105.167])
	by mx.google.com with ESMTPS id va9sm9885670igb.17.2012.05.23.00.24.50
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 23 May 2012 00:24:51 -0700 (PDT)
Received: by vulcan.local (Postfix, from userid 501)
	id 20044E446C09; Wed, 23 May 2012 02:24:49 -0500 (CDT)
To: YAMAMOTO Mitsuharu <mituharu@HIDDEN>
Subject: Re: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code
References: <m2d364ocwo.fsf@HIDDEN>
	<wlwr4bsioz.wl%mituharu@HIDDEN>
	<m2zk97qvpr.fsf@HIDDEN>
	<wlvcju737a.wl%mituharu@HIDDEN>
From: John Wiegley <jwiegley@HIDDEN>
Date: Wed, 23 May 2012 02:24:49 -0500
In-Reply-To: <wlvcju737a.wl%mituharu@HIDDEN> (YAMAMOTO
	Mitsuharu's message of "Fri, 18 May 2012 09:17:13 +0900")
Message-ID: <m2hav7pdfi.fsf@HIDDEN>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.0.97 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
Cc: bug-cc-mode@HIDDEN, bug-gnu-emacs@HIDDEN,
	mituharu+bug-gnu-emacs-mac@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

>>>>> YAMAMOTO Mitsuharu <mituharu@HIDDEN> writes:

> With the Time Profiler in Instrument.app, I found that fontification
> of CC Mode in Emacs 24 is much heavier and causes frequent GCs than
> that in Emacs 23.  Please try the following:
> 
>   1. Start Emacs 24 Mac port with -Q (alternatively, pressing the
>      shift key.)
>   2. M-x load-file PREFIX/share/emacs/23.4/lisp/progmodes/cc-fonts.elc
>      RTE.
>   3. Replay scrolling a large C++ file.
> 
> I'm not sure if this slowdown is intended or expected.

Indeed, this makes the speed situation much better on Emacs 24.0.97.

 - When I scroll a large C++ file in Emacs 24.0.97 the first time, the
   performance is very choppy, even on a powerful Mac Pro machine.

   There are moments toward the end of the file when I can actually count out
   10 seconds or so before it moves on to the next page.  The file is 17,983
   lines long, consisting entirely of type declarations, enum, #define's and
   prototypes.

 - If I press M-<, go back to the top of the file, and then scroll to the
   bottom again, there are basically no pauses.

 - If I delete the buffer and re-open the file, scrolling is the same as
   before.

 - If I delete the buffer and load cc-fonts.elc from Emacs 23.4, scrolling
   performance is *much* better.  It is less choppy, and although it still
   shows one long pause toward the end (garbage collection?), that's it.

 - As before, going to the top with M-< and re-scrolling shows perfect speed,
   no lag whatsoever; and killing the buffer and re-scrolling shows the same
   faster performance as before, with less lag (but still a little bit).

The strange thing is, cc-fonts.el.gz is identical between Emacs 23.4 and Emacs
24.0.97!  Only the .elc's differ.  Have we found a byte-compilation issue in
Emacs 24?

John




Acknowledgement sent to John Wiegley <jwiegley@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#11545; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.