From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to improve Org startup time? Date: Wed, 30 Jan 2013 00:06:42 +0100 Message-ID: <87txpzoagt.fsf@bzg.ath.cx> References: <867gmviujs.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0KGb-0006LS-Hz for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 18:07:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0KGa-00032z-EW for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 18:07:01 -0500 Received: from plane.gmane.org ([80.91.229.3]:43130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0KGa-00032P-7Q for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 18:07:00 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U0KGo-0008MO-89 for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 00:07:14 +0100 In-Reply-To: <867gmviujs.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 29 Jan 2013 21:49:27 +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: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org HI Sébastien, "Sebastien Vauban" writes: > 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?? There are basically two factors that can slow down the agenda generation: the number of agenda files, the number of entries to check in all agenda files. Can you compare the time spent by the initialization process before and after commit 582cca5806 ? It should improve things sensibly, I'd be curious to know why it does not improve anything -- if that's the case. Also, do you have any hooks in org-mode-hook? Finally, org-agenda-to-appt is very slow by default, it uses org-agenda-get-day-entries and check every entry... see the docstring on how to make it check only the ones you really need. HTH! -- Bastien