From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#10652: 24.0.93; font-lock very slow for C++ Date: Fri, 2 Mar 2012 22:27:47 +0000 Message-ID: <20120302222747.GA25732__24210.6617232368$1330727431$gmane$org@acm.acm> References: <874nuekjte.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1330727431 12669 80.91.229.3 (2 Mar 2012 22:30:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2012 22:30:31 +0000 (UTC) Cc: Helmut Eller , 10652@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 23:30:30 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 1S3azd-0004JX-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2012 23:30:29 +0100 Original-Received: from localhost ([::1]:38215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3azc-0000Ub-7B for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2012 17:30:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3azY-0000K6-7N for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2012 17:30:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3azD-0008UM-Lb for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2012 17:30:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3azA-0008Rn-FL; Fri, 02 Mar 2012 17:30:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S3azC-0008AB-6f; Fri, 02 Mar 2012 17:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 02 Mar 2012 22:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10652 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 10652-submit@debbugs.gnu.org id=B10652.133072735731301 (code B ref 10652); Fri, 02 Mar 2012 22:30:02 +0000 Original-Received: (at 10652) by debbugs.gnu.org; 2 Mar 2012 22:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:59443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3ayS-00088e-KB for submit@debbugs.gnu.org; Fri, 02 Mar 2012 17:29:17 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:38372 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S3ayF-000880-UU for 10652@debbugs.gnu.org; Fri, 02 Mar 2012 17:29:05 -0500 Original-Received: (qmail 72742 invoked by uid 3782); 2 Mar 2012 22:28:30 -0000 Original-Received: from acm.muc.de (pD951A7F0.dip.t-dialin.net [217.81.167.240]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 02 Mar 2012 23:28:28 +0100 Original-Received: (qmail 25743 invoked by uid 1000); 2 Mar 2012 22:27:47 -0000 Content-Disposition: inline In-Reply-To: <874nuekjte.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:57441 Archived-At: Hello Yidong, hello Helmut. On Sun, Feb 26, 2012 at 05:47:25PM +0800, Chong Yidong wrote: > Helmut Eller writes: > > Font lock is extremely slow in this file: > > http://hg.openjdk.java.net/jdk7/jdk7/hotspot/raw-file/b92c45f2bc75/src/share/vm/runtime/globals.hpp > > Download the file and open it with emacs -Q globals.hpp. Then > > scroll around in the file to see how slow it is. > I got Emacs into an uninterruptible loop while scrolling through the > buffer :-( > Looks like a regression against Emacs 23's CC mode, which handles the > file just fine. Alan, could you investigate? Thanks. I've just committed a collection of optimisations as revision #107485. I can now scroll through the huge macro in that file quite quickly. However, typing in the buffer is still suboptimal. I don't know how much I'll be able to do to sort this out. -- Alan Mackenzie (Nuremberg, Germany).