From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#4222: calls to char_table_ref slow down 23.1 (vs 22.3) Date: Fri, 21 Aug 2009 15:34:10 +0900 Message-ID: References: <200908210518.n7L5IAN1015939@godzilla.ics.uci.edu> Reply-To: Kenichi Handa , 4222@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250837238 19684 80.91.229.12 (21 Aug 2009 06:47:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 06:47:18 +0000 (UTC) To: Dan Nicolaescu , 4222@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 08:47:11 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeNu1-0000JR-59 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 08:47:09 +0200 Original-Received: from localhost ([127.0.0.1]:51854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeNu0-0001g8-MA for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 02:47:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeNtu-0001fi-30 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 02:47:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeNtn-0001at-NE for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 02:47:00 -0400 Original-Received: from [199.232.76.173] (port=53800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeNtn-0001aY-Gs for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 02:46:55 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:31504) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeNtn-00014p-3K for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 02:46:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeNtl-0002Wr-S9 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 02:46:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7L6kpaE031247; Thu, 20 Aug 2009 23:46:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7L6e5Q7030110; Thu, 20 Aug 2009 23:40:05 -0700 Resent-Date: Thu, 20 Aug 2009 23:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 21 Aug 2009 06:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4222 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4222-submit@emacsbugs.donarmstrong.com id=B4222.125083645529165 (code B ref 4222); Fri, 21 Aug 2009 06:40:05 +0000 Original-Received: (at 4222) by emacsbugs.donarmstrong.com; 21 Aug 2009 06:34:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7L6YC5a029162 for <4222@emacsbugs.donarmstrong.com>; Thu, 20 Aug 2009 23:34:14 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n7L6YAk2008946; Fri, 21 Aug 2009 15:34:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n7L6YAJ8026729; Fri, 21 Aug 2009 15:34:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n7L6YAdr026498; Fri, 21 Aug 2009 15:34:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MeNhS-0002Wd-7T; Fri, 21 Aug 2009 15:34:10 +0900 In-reply-to: <200908210518.n7L5IAN1015939@godzilla.ics.uci.edu> (message from Dan Nicolaescu on Thu, 20 Aug 2009 22:18:10 -0700 (PDT)) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 21 Aug 2009 02:47:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30408 Archived-At: > Take src/config.h run C-x r t on it to insert a space in front of each > line. > Then build both emacs-23.1 and 22.3 with profiling enabled (-O2 -g -pg). > Then run: > emacs -Q -nw config.h > M-: (indent-region (point-min)(point-max)) RET > C-x C-c [...] > It can be seen that 23.1 is quite a bit slower, and that it has a lot of > extra calls to char_table_ref. > Is there some easy way to reduce the number of those calls? Please find which char-table is referred so many times. --- Kenichi Handa handa@m17n.org