From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3 Date: Wed, 22 Oct 2008 23:19:56 +0200 Message-ID: References: <20081022091136.GB924@muc.de> <20081022151444.GE924@muc.de> <48FF58FB.6000302@harpegolden.net> <20081022211202.GA1037@muc.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224710486 26167 80.91.229.12 (22 Oct 2008 21:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 21:21:26 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, david@harpegolden.net To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 22 23:22:26 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 1Ksl9t-00033h-SG for ged-emacs-devel@m.gmane.org; Wed, 22 Oct 2008 23:22:26 +0200 Original-Received: from localhost ([127.0.0.1]:54724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksl8o-0002kd-51 for ged-emacs-devel@m.gmane.org; Wed, 22 Oct 2008 17:21:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ksl8k-0002k5-BE for emacs-devel@gnu.org; Wed, 22 Oct 2008 17:21:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ksl8j-0002jk-P1 for emacs-devel@gnu.org; Wed, 22 Oct 2008 17:21:13 -0400 Original-Received: from [199.232.76.173] (port=46218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksl8j-0002jR-85 for emacs-devel@gnu.org; Wed, 22 Oct 2008 17:21:13 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:42186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ksl8i-00018K-Oc for emacs-devel@gnu.org; Wed, 22 Oct 2008 17:21:13 -0400 Original-Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9500JXGSNJR432@i_mtaout4.012.net.il> for emacs-devel@gnu.org; Wed, 22 Oct 2008 23:21:20 +0200 (IST) In-reply-to: <20081022211202.GA1037@muc.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.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:104864 Archived-At: > Date: Wed, 22 Oct 2008 21:12:02 +0000 > From: Alan Mackenzie > Cc: Stefan Monnier , emacs-devel@gnu.org > > > >>>Starting Emacs 22.3 takes 23 seconds. > > >>>Starting Emacs 23.0 takes 38 seconds. Is this with cold or warm cache? Is there a difference? > > FWIW, I'd find your emacs22 time pretty unacceptable, never mind the > > emacs23 one, even on a 1.2GHz-class machine. Are a lot of people > > putting up with that sort of start time? Ouch. > > Hey, don't be so hard on my poor little PC! It's getting on a bit[*]. > There's 83 files being loaded by desktop, with a total of 7801019 bytes. How many seconds does it take to run "sed -n -e s/xyzzy/xyzzy/p" on all those files, on that machine? (That should give us a baseline of the disk and filesystem performance.) > emacs-22 -Q starts in ~0.4 seconds. > emacs-23 -Q starts in ~0.7 seconds. Can you see if some files your desktop visits take much longer than others? How about loading elp.el early on and profiling the startup phase on both versions? On GNU/Linux, FreeBSD, and MS-Windows, you can also profile Emacs on the C level, search for PROFILING in emacs.c.