From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Speeding up Emacs load time Date: Fri, 28 Jun 2013 13:06:18 -0600 Message-ID: <20130628190618.GA30921@hysteria.proulx.com> References: <20130628032009.GA31464@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1372446399 11782 80.91.229.3 (28 Jun 2013 19:06:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 19:06:39 +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 21:06:39 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 1Use0E-0005js-Ek for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 21:06:38 +0200 Original-Received: from localhost ([::1]:42636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Use0D-0000aU-SB for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 15:06:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Use00-0000X5-GG for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 15:06:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Usdzz-0006cF-48 for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 15:06:24 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:36748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Usdzy-0006bY-62 for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 15:06:22 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 944E2211DC for ; Fri, 28 Jun 2013 13:06:19 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 3B78C2DCE9; Fri, 28 Jun 2013 13:06:18 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.17.153.58 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:91825 Archived-At: Dan Espen wrote: > 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 Yes! I should have mentioned the cold-cache hot-cache issue. Thanks for pointing that out. I will go ahead and show my cold cache start up times. But I am hoping not to turn this into a session about my desktop being slower/faster than another. The point I was trying to make was about the relative difference between the various startup times with and without the local customizations. # echo 3 > /proc/sys/vm/drop_caches $ time emacs -Q -f kill-emacs real 0m4.849s user 0m0.048s sys 0m0.032s # echo 3 > /proc/sys/vm/drop_caches $ time emacs -q -f kill-emacs real 0m5.198s user 0m0.148s sys 0m0.028s # echo 3 > /proc/sys/vm/drop_caches $ time emacs -f kill-emacs real 0m6.283s user 0m0.144s sys 0m0.052s Here adding my local .emacs adds a second and a half to the startup. Bob