[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Orgmode is loading very slowly
From: |
Sebastien Vauban |
Subject: |
Re: [O] Orgmode is loading very slowly |
Date: |
Thu, 17 Jan 2013 22:35:29 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.92 (windows-nt) |
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