From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3 Date: Fri, 24 Oct 2008 01:13:42 +0100 Message-ID: <49011336.10307@harpegolden.net> References: <20081022091136.GB924@muc.de> <20081022151444.GE924@muc.de> <48FF58FB.6000302@harpegolden.net> <20081022211202.GA1037@muc.de> <49001F5A.7040402@harpegolden.net> <20081023090908.GB2666@muc.de> <4900ACF9.7060501@harpegolden.net> <4900FF17.2000203@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224807250 14268 80.91.229.12 (24 Oct 2008 00:14:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2008 00:14:10 +0000 (UTC) Cc: acm@muc.de, Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 24 02:15:06 2008 connect(): Connection refused 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 1KtAKW-0004UG-FV for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 02:15:04 +0200 Original-Received: from localhost ([127.0.0.1]:55582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtAJO-0000ui-6g for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2008 20:13:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtAJK-0000uT-49 for emacs-devel@gnu.org; Thu, 23 Oct 2008 20:13:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtAJI-0000uH-O0 for emacs-devel@gnu.org; Thu, 23 Oct 2008 20:13:49 -0400 Original-Received: from [199.232.76.173] (port=50242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtAJI-0000uE-GJ for emacs-devel@gnu.org; Thu, 23 Oct 2008 20:13:48 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:35332) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtAJG-0000kM-I1; Thu, 23 Oct 2008 20:13:46 -0400 Original-Received: from [87.198.54.44] (87-198-54-44.ptr.magnet.ie [87.198.54.44]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id EB3CF8325; Fri, 24 Oct 2008 01:13:44 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104920 Archived-At: Lennart Borgman wrote: > Based on that observation system calls other than reading the file > contents looks most suspicious to me. In `after-find-file' (which is > called at the end of `find-file-noselect-1') there are some calls to > `file-attributes'. Are they perhaps involved? Bah, my bad, somehow missed that inside the if statement the first pass through, duh.. Yes, it is mostly "after-find-file", but the call to "normal-mode" is the killer, not the file attributes calls in "after-find-file" itself! - [1] "normal-mode" bulk is is split into "set-auto-mode" and "hack-local-variables" fairly evenly (roughly 11:9 as below) Most of the latter is in "hack-project-variables", and most of /that/ is "project-find-settings-file", and most of that is the "locate-dominating-file" walk. +++ Wasn't the project functionality (.dir-settings.el variable settings) new in emacs23? That may well account for emacs22->emacs23 ? For every file loaded, it's redoing that... +++ Which leaves set-auto-mode... [1] find-file-noselect 180 3.3577020000 0.0186539000 find-file-noselect-1 180 2.6044840000 0.0144693555 after-find-file 180 2.2709340000 0.0126163000 normal-mode 180 2.0908219999 0.0116156777 set-auto-mode 180 1.141377 0.0063409833 hack-local-variables 180 0.9163369999 0.0050907611 hack-project-variables 180 0.8940040000 0.0049666888 project-find-settings-file 180 0.8922979999 0.0049572111 locate-dominating-file 180 0.890476 0.0049470888 insert-file-contents 361 0.3547089999 0.0009825734 run-hooks 2406 0.2279640000 9.474...e-05 re-search-forward 1453 0.1557330000 0.0001071803 vc-find-file-hook 180 0.1458039999 0.0008100222 font-lock-mode 722 0.0745249999 0.0001032202 file-attributes 1476 0.0304240000 2.061...e-05 make-local-variable 10477 0.0182779999 1.744...e-06 file-name-nondirectory 7843 0.0176319999 2.248...e-06 abbreviate-file-name 730 0.0165959999 2.273...e-05 search-forward 1811 0.0137990000 7.619...e-06 file-exists-p 756 0.0132379999 1.751...e-05 fundamental-mode 180 0.012926 7.181...e-05 file-name-directory 4091 0.0107010000 2.615...e-06