emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] another example of org being slow, with some analysis


From: Nick Dokos
Subject: Re: [O] another example of org being slow, with some analysis
Date: Thu, 18 Jun 2015 14:30:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eric S Fraga <address@hidden> writes:


> The output of the ELP profiler is here:
>
> ...
> org-goto-line                       104  10.761145733  0.1034725551
> ..
> org-current-line                    66   6.8422078910  0.1036698165
> ...

I find these two difficult to explain: they account for the vast
majority of the time, they don't call anything other than basic emacs
lisp functions (which should be very fast) and they take an unbelievably
long 0.1 s/call - I did a profile of a single call of each in a file
where wc reports these stats:

  12961  270362 4317977 /home/nick/lib/notes/notes.org

and I got 0.002s for the first (going to line 6000, about the middle of
the file) and 0.0004s for the second: a factor of 50 smaller for the
first and a factor of 250 smaller for the second.

Maybe it's an artifact of profiling, but maybe you can try instrumenting
these two functions and doing something similar.  Do you still get 0.1s
for each call?

Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]