From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Speeding up Emacs load time Date: Fri, 28 Jun 2013 10:16:53 -0400 Organization: A noiseless patient Spider Message-ID: References: <20130628032009.GA31464@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372434384 8161 80.91.229.3 (28 Jun 2013 15:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 15:46:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 17:46:25 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsasT-00057c-5d for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 17:46:25 +0200 Original-Received: from localhost ([::1]:50540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsasS-0004yL-Km for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 11:46:24 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 77 Injection-Info: mx05.eternal-september.org; posting-host="b8816fa7300cd668c1c8ea38fc847e8a"; logging-data="6330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xw7jdd+gaEuJHS9yQU1nSB0o66gFmEq4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:FgedcBSJczx2/zeDZDHhD4c8XAI= sha1:E3WmVw4bFGovU2LkoB9MPZkwTEU= Original-Xref: usenet.stanford.edu gnu.emacs.help:199551 X-Mailman-Approved-At: Fri, 28 Jun 2013 11:46:15 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91817 Archived-At: david@adboyd.com (J. David Boyd) writes: > david@adboyd.com (J. David Boyd) writes: > >> Bob Proulx writes: >> >>> >>> Timings from my system after much optimization. >>> >>> $ time emacs -f kill-emacs >>> real 0m0.157s >>> user 0m0.140s >>> sys 0m0.012s >>> $ time emacs -q -f kill-emacs >>> real 0m0.137s >>> user 0m0.116s >>> sys 0m0.016s >>> $ time emacs -Q -f kill-emacs >>> real 0m0.051s >>> user 0m0.028s >>> sys 0m0.020s >>> >>> Bob >> >> >> Here's mine at present. I'll have to work at it and see if I can approach >> your times... >> >> >> $ time emacs -f kill-emacs >> >> real 0m23.400s >> user 0m7.199s >> sys 0m9.500s >> >> $ time emacs -q -f kill-emacs >> >> real 0m1.710s >> user 0m1.170s >> sys 0m0.249s >> >> $ time emacs -Q -f kill-emacs >> >> real 0m1.680s >> user 0m1.201s >> sys 0m0.217s > > > After some minor tweaking, I got it down to > > real 0m11.623s > user 0m5.439s > sys 0m4.451s > > > I can live with that for a while. Getting it any faster would take a lot of > tweaking that I don't have time for right now. > > Thanks for the thread. 11 seconds is much better than 24! Don't know if anyone has pointed out that your first test is going to be dramatically slower than subsequent tests: home> time emacs -Q -f kill-emacs real 0m6.582s user 0m0.409s sys 0m0.109s home> time emacs -Q -f kill-emacs real 0m0.500s user 0m0.385s sys 0m0.062s -- Dan Espen