emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [


From: Ihor Radchenko
Subject: Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]
Date: Tue, 20 Sep 2022 21:51:15 +0800

andrés ramírez <rrandresf@hotmail.com> writes:

>     Ihor> Can you please try again with the newest Org?
>
> Done (f1a1974). There is NO improvement. It still takes 33s.
> ...
> JIC: I am attaching a new profiler report.

This does not make sense.
According to your profiler, you are still using an older version of
org-in-src-block-p function. Can you please make sure that no obsolete
.elc files are present in the Org distribution? (you can run make)

> Just out of curiosity. which bug or improvement or new feature on agenda
> caused this delay on showing the agenda buffer?.

Previously, determining if diary sexp is located inside src block (and thus
must not be considered a valid match) was done (incorrectly) relying on
fontification. That bug has been fixed to ensure correctness at the cost
of performance degradation.

>     Ihor> Also, note that a good fraction of loading time is taken by 
> org-modules (19%) and loading
>     Ihor> other libraries (10%). Subsequent agenda rebuilds should be faster.
>
> Sure. But remember I am comparing with the same conditions against
> emacs27 which takes 22s.

It would be interesting to see the profiler results in emacs27.

Also, the new code is capable of caching some data across Emacs sessions
during normal usage. Though it will only make a few second difference
in you specific situation (according to the profiler data).

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



reply via email to

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