From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: extremely slow font-lock-mode Date: Wed, 12 Dec 2007 13:25:58 +0900 Message-ID: References: <475E659F.4000303@os.inf.tu-dresden.de> <475F0FE3.7000802@gmx.at> <475F2981.6030108@os.inf.tu-dresden.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1197433586 26665 80.91.229.12 (12 Dec 2007 04:26:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 04:26:26 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Martin Pohlack Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 12 05:26:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2JB5-0001Hu-VB for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2007 05:26:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2JAn-0007Lt-Ks for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 23:26:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2JAk-0007Ka-5i for emacs-devel@gnu.org; Tue, 11 Dec 2007 23:26:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2JAi-0007Ih-Qc for emacs-devel@gnu.org; Tue, 11 Dec 2007 23:26:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2JAi-0007IY-MT for emacs-devel@gnu.org; Tue, 11 Dec 2007 23:26:12 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2JAi-0005aj-F1 for emacs-devel@gnu.org; Tue, 11 Dec 2007 23:26:12 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id lBC4Q1SS002757; Wed, 12 Dec 2007 13:26:01 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id lBC4Q1at011401; Wed, 12 Dec 2007 13:26:01 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id lBC4PwTW023535; Wed, 12 Dec 2007 13:25:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1J2JAU-00047f-Dp; Wed, 12 Dec 2007 13:25:58 +0900 In-reply-to: <475F2981.6030108@os.inf.tu-dresden.de> (message from Martin Pohlack on Wed, 12 Dec 2007 01:21:21 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85081 Archived-At: In article <475F2981.6030108@os.inf.tu-dresden.de>, Martin Pohlack writes: > [1 ] > martin rudalics wrote: >>> I'm experiencing very slow syntax highlighting with emacs-23.0.60 >>> (GTK+ Version 2.12.1)a. >>> >>> Simply scrolling in source files takes incredibly long (~ 1 second for >>> scolling one line backwards). This is an a dual-core 2 GHZ machine I recentry modified handle_auto_composed_prop in emacs-unicode-2. There's a possibility that it is the culprit. Please try to turn off auto-composition-mode. > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit \ > mask of 0x00 (Unhalted core cycles) count 240000 > samples % symbol name > 48798 32.2244 lookup_char_property > 37434 24.7200 next_interval > 24605 16.2482 get_property_and_range Hmmm, in handle_auto_composed_prop, get_property_and_range is called twice, and such a file as entry-ia32-ux.S causes freguent face change which leads to lots of calling handle_auto_composed_prop. --- Kenichi Handa handa@ni.aist.go.jp