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 16:19:35 +0100 Message-ID: <4901E787.40504@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> <49011336.10307@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 1224861632 10181 80.91.229.12 (24 Oct 2008 15:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2008 15:20:32 +0000 (UTC) Cc: acm@muc.de, Eli Zaretskii , Lennart Borgman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 24 17:21:33 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 1KtOTP-0004Hv-3e for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 17:21:11 +0200 Original-Received: from localhost ([127.0.0.1]:39924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtOSF-00043X-S5 for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 11:19:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtOSA-00041l-6J for emacs-devel@gnu.org; Fri, 24 Oct 2008 11:19:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtOS6-0003yB-CH for emacs-devel@gnu.org; Fri, 24 Oct 2008 11:19:52 -0400 Original-Received: from [199.232.76.173] (port=45671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtOS5-0003xv-NG for emacs-devel@gnu.org; Fri, 24 Oct 2008 11:19:49 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:41148) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtORz-00080v-EK; Fri, 24 Oct 2008 11:19:43 -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 304D98088; Fri, 24 Oct 2008 16:19:37 +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:104948 Archived-At: Stefan Monnier wrote: >> 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. > > locate-dominating-file (or rather some equivalent code) is also used in > VC to detect the revision control system used for the file. > It's actually used 5 times there (once each for Bzr Git Hg Mtn Arch), so > are you sure only the one in project-find-settings-file costs us > the slowdown? Not all of it, but it seems to be significant. taking out locate-dominating-file with: (defun locate-dominating-file (file regexp) nil) runs just now (one after the other, no reboot, so probably from OS cache anyway) emacs l-d-f realtime 22 n/a 4.921 23 off 6.188 23 on 7.500 Taking out hack-project-variables as a whole similarly emacs h-p-v realtime 23 off 6.079 So it's about 1/2 the slowdown? Then I set vc-handled-backends to nil (not sure that stops vc searching totally, mind): emacs vc-h-b h-p-v realtime 23 off off 5.503 23 off on 7.189