From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kan-Ru Chen Newsgroups: gmane.emacs.devel Subject: Re: Slow fontification in C mode buffers Date: Sun, 22 Jan 2012 12:20:05 +0800 Message-ID: <8762g4tll6.fsf@isil.kanru.info> References: <83vcpxbxn0.fsf@gnu.org> <20111203151824.GA4566@acm.acm> <87pqfso5d3.fsf@isil.kanru.info> <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> <20120115211240.GA4693@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327206023 28177 80.91.229.12 (22 Jan 2012 04:20:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2012 04:20:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 05:20:18 2012 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 1Roouf-0005AR-Ih for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2012 05:20:17 +0100 Original-Received: from localhost ([::1]:51545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rooue-0002Qq-Kv for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2012 23:20:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Roouc-0002Qk-0Q for emacs-devel@gnu.org; Sat, 21 Jan 2012 23:20:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rooua-0005kD-KK for emacs-devel@gnu.org; Sat, 21 Jan 2012 23:20:13 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:64667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rooua-0005k9-GM for emacs-devel@gnu.org; Sat, 21 Jan 2012 23:20:12 -0500 Original-Received: by yenm10 with SMTP id m10so897076yen.0 for ; Sat, 21 Jan 2012 20:20:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=fUXgu3dBZ3ia1cvopnJQt8vxiSO5lUCdMTs0Nj3Qk5A=; b=o0mqTqq7zsK+ormPjJmVZQ7vSBm/jxcnB9TEWX/UFh5kOoZjazOZJLbW/CD34YWn1h N8SnUQvx+LxP5IA05jSJhYQKkV641DTtaIf11qAKBmR9ThDPot8fCCaNy12EbH6nAJTP DAPn486e4EetqiXjuRDEydAkPc819uE0Y1kgE= Original-Received: by 10.236.184.8 with SMTP id r8mr4984305yhm.110.1327206011645; Sat, 21 Jan 2012 20:20:11 -0800 (PST) Original-Received: from isil.kanru.info (61-228-146-126.dynamic.hinet.net. [61.228.146.126]) by mx.google.com with ESMTPS id q29sm22868614anh.1.2012.01.21.20.20.08 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Jan 2012 20:20:10 -0800 (PST) Original-Received: from localhost.localdomain ([127.0.0.1] helo=isil.kanru.info) by isil.kanru.info with esmtp (Exim 4.77) (envelope-from ) id 1RoouT-00080d-Bu; Sun, 22 Jan 2012 12:20:05 +0800 In-Reply-To: <20120115211240.GA4693@acm.acm> (Alan Mackenzie's message of "Sun, 15 Jan 2012 21:12:40 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 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:147824 Archived-At: Hi! Alan Mackenzie writes: > Hello, Kanru! > > On Sun, Dec 18, 2011 at 12:06:00AM +0800, Kan-Ru Chen wrote: >> Alan Mackenzie writes: > >> Please forgive me for using the other files, it is closer to the real >> case. You can get the file from > >> https://hg.mozilla.org/mozilla-central/raw-file/tip/dom/base/nsDOMClassInfo.cpp > > Ah yes, this wonderful file! > > Here's another patch which contains more optimisations than my last > patch. Could you apply it _instead_ of the previous patch, and let me > know how it goes, please. The more serious editing you can do with it, > particularly on C++ files, the better. Thanks! This version works as well as previous one. It seems slightly faster than previous one, though I didn't do any serious profiling. -- Kanru