From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to improve Org startup time? Date: Thu, 31 Jan 2013 15:13:42 +1030 Message-ID: <87d2wm7yip.fsf@ucl.ac.uk> References: <867gmviujs.fsf@somewhere.org> <4875.1359494613@alphaville> <86txpzhaw3.fsf@somewhere.org> <6297.1359501092@alphaville> <86ip6ff3np.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0lzH-000497-0o for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 23:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0lzF-0002lZ-Gd for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 23:42:58 -0500 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:12211 helo=tx2outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0lzF-0002hF-Ar for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 23:42:57 -0500 In-Reply-To: <86ip6ff3np.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 30 Jan 2013 09:58:34 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Some timings on a 3-4 (?) year old netbook with Intel N450 Atom @1.66GHz dual core powered: With old org, actually from October 2012 (!) as this system acts as a cloud server for me so I don't actually use it interactively much: | org-agenda-to-appt | 1 | 12.525722775 | 12.525722775 | | org-agenda-prepare-buffers | 2 | 10.719484861 | 5.3597424305 | | org-agenda-get-day-entries | 15 | 1.4113181819 | 0.0940878787 | | org-agenda-get-scheduled | 15 | 1.032943071 | 0.0688628714 | | org-agenda-get-deadlines | 14 | 0.2688785840 | 0.0192056131 | | org-agenda-skip | 797 | 0.1879489969 | 0.0002358205 | and with up to date org as of a few minutes ago: | org-agenda-to-appt | 1 | 9.168879079 | 9.168879079 | | org-agenda-prepare-buffers | 2 | 8.1717637810 | 4.0858818905 | | org-agenda-get-day-entries | 15 | 0.5261351449 | 0.0350756763 | | org-agenda-get-deadlines | 14 | 0.253867925 | 0.0181334232 | | org-agenda-get-scheduled | 15 | 0.1835072029 | 0.0122338135 | | org-agenda-skip | 797 | 0.0482942050 | 6.059...e-05 | I.e. an approximately 25% reduction in time overall so I think org-agenda is significantly faster (okay, not orders of magnitude) but the time taken is dominated by org-agenda-prepare-buffers on this system. However, more interestingly, on a 1 year old desktop computer Intel Core i5-2500 @ 3.30 GHz, I get very different behaviour: | org-agenda-to-appt | 1 | 0.182718048 | 0.182718048 | | org-agenda-get-day-entries | 14 | 0.095832824 | 0.0068452017 | | org-agenda-prepare-buffers | 1 | 0.086104933 | 0.086104933 | | org-agenda-get-scheduled | 14 | 0.067475949 | 0.0048197106 | | org-agenda-skip | 794 | 0.0475198030 | 5.984...e-05 | | org-agenda-get-deadlines | 14 | 0.014998552 | 0.0010713251 | [note: slightly different agenda files as the cloud server copy of my agenda files is a couple of hours behind my desktop] Notice the big change in org-agenda-prepare-buffers relative to the other calls. Disk performance is almost likely the key here and I think the recent improvements are quite dramatic but I haven't had a chance to time these yet. -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506