From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Orgmode is loading very slowly Date: Thu, 17 Jan 2013 22:35:29 +0100 Message-ID: <86mww75w7y.fsf@somewhere.org> References: <20130117103729.GR1982@pedroche.intern> <20130117185609.GP11399@pedroche.intern> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Igor, > in the last time (maybe 3-4 weeks) I am noticing that orgmode starts > very slowly. Yes, I know, this is highly subjective. > > Is there a way in emacs to `trace' what emacs is doing/loading? > > I'm using: orgmode 7.9.3d on emacs 24.2.1 (archlinux) > > PS: i'm speaking of ~10 files, most of them under 80Kb. Only one with > 850kb and three with ~150Kb. I've written the following code, which I'm using to get insight about "opening times" (in and out of Org): --8<---------------cut here---------------start------------->8--- (defadvice find-file (around find-file-around activate) "Open FILENAME and report time spent." (let ((filename (ad-get-arg 0)) (find-file-time-start (float-time))) (message "(info) Finding file %s..." filename) ad-do-it (message "(info) Found file %s in %.2f s." filename (- (float-time) find-file-time-start)))) --8<---------------cut here---------------end--------------->8--- Pretty useful (to me)... Best regards, Seb -- Sebastien Vauban