From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#11545: 24.0.96-mac-2.92; Strange speed problem scrolling in C++ code Date: Wed, 23 May 2012 02:24:49 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337757997 29509 80.91.229.3 (23 May 2012 07:26:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 May 2012 07:26:37 +0000 (UTC) Cc: bug-cc-mode@gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp, 11545@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 23 09:26:34 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SX5xj-0005bW-UQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2012 09:26:28 +0200 Original-Received: from localhost ([::1]:36618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5xh-0002YS-81 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2012 03:26:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5xd-0002Xx-OY for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:26:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX5xX-0007g8-Dj for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:26:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5xX-0007er-7l for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:26:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SX5yI-0002tW-IZ for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 May 2012 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp Original-Received: via spool by submit@debbugs.gnu.org id=B.133775798411066 (code B ref -1); Wed, 23 May 2012 07:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 May 2012 07:26:24 +0000 Original-Received: from localhost ([127.0.0.1]:40292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SX5xg-0002sQ-2g for submit@debbugs.gnu.org; Wed, 23 May 2012 03:26:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59546) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SX5xd-0002s9-Uw for submit@debbugs.gnu.org; Wed, 23 May 2012 03:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX5wg-0007I2-VT for submit@debbugs.gnu.org; Wed, 23 May 2012 03:25:28 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:46181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5wg-0007Hw-QF for submit@debbugs.gnu.org; Wed, 23 May 2012 03:25:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5wZ-0002U0-5X for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX5wU-0007Gh-7I for bug-gnu-emacs@gnu.org; Wed, 23 May 2012 03:25:14 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:62924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX5wL-00072s-UN; Wed, 23 May 2012 03:25:02 -0400 Original-Received: by ggm4 with SMTP id 4so7493227ggm.0 for ; 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== Original-Received: by 10.50.149.225 with SMTP id ud1mr11922290igb.74.1337757892673; Wed, 23 May 2012 00:24:52 -0700 (PDT) Original-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) Original-Received: by vulcan.local (Postfix, from userid 501) id 20044E446C09; Wed, 23 May 2012 02:24:49 -0500 (CDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Fri, 18 May 2012 09:17:13 +0900") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.0.97 (darwin) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60293 Archived-At: >>>>> YAMAMOTO Mitsuharu 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