From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to improve Org startup time? Date: Tue, 29 Jan 2013 16:23:33 -0500 Message-ID: <4875.1359494613@alphaville> References: <867gmviujs.fsf@somewhere.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0IeW-00015r-QM for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 16:23:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0IeV-0006wX-MG for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 16:23:36 -0500 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:37605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0IeV-0006wO-EY for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 16:23:35 -0500 In-Reply-To: Message from "Sebastien Vauban" of "Tue, 29 Jan 2013 21:49:27 +0100." <867gmviujs.fsf@somewhere.org> 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 Sebastien Vauban wrote: > In particular, you'll see that *16 seconds* are "lost" between 21:20:30 and > 21:20:46. They correspond to the executiong of just *one line*: > > #+begin_src emacs-lisp > (org-agenda-to-appt) > #+end_src > > This may have something to do with my big amount of Org files in > `org-agenda-files': 36 at this point. But is that so big?? > I don't think so. Can you get a profile? M-x elp-instrument-package RET org-agenda RET M-x org-agenda-to-appt M-x elp-results In my (admittedly unchallenging, run-of-the-mill) setup, I get (with everything already loaded): org-agenda-to-appt 1 0.053846964 0.053846964 org-agenda-prepare-buffers 1 0.028483817 0.028483817 org-agenda-get-day-entries 8 0.024222044 0.0030277555 org-agenda-get-scheduled 8 0.0154506449 0.0019313306 org-agenda-get-timestamps 8 0.004179949 0.0005224936 org-agenda-skip 184 0.0027937810 1.518...e-05 org-agenda-files 2 0.001386068 0.000693034 org-agenda-get-deadlines 8 0.001288303 0.0001610378 org-agenda-format-item 22 0.0012140690 5.518...e-05 org-agenda-get-blocks 8 0.0007851970 9.814...e-05 org-agenda-new-marker 44 0.0006114019 1.389...e-05 org-agenda-skip-eval 368 0.0001511950 4.108...e-07 org-agenda-todayp 16 0.0001342800 8.392...e-06 org-agenda-fix-displayed-tags 22 7.2914e-05 3.314...e-06 org-agenda-get-category-icon 22 1.8382e-05 8.355...e-07 org-agenda-time-of-day-to-ampm-maybe 6 3.347e-06 5.578...e-07 A factor of 300: maybe it's real, but let's make sure first. Nick