emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Things got very slow: profiler output


From: Ihor Radchenko
Subject: Re: Things got very slow: profiler output
Date: Thu, 14 Mar 2024 21:23:09 +0000

Bruno Cardoso <cardoso.bc@gmail.com> writes:

> I don't know if it is related, but if I set a property (C-c C-x p) in a new 
> heading with no drawers, I'm unable to unfold the newly created drawer (TAB 
> over it does nothing), although I am able to fold/unfold other already 
> existent drawers as expected. This also happens in `emacs -Q' (org-version 
> 9.7-pre release_9.6.20-1280-g7653e5).

That's a different bug.
Fixed on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fb61e83f2

> Besides the profiler, which still blames
> `org-fold-core--property-symbol-get-create' for the slow-down, is
> there some debugging configuration I should try out?

You can try to run
M-: (benchmark-run 10000 (org-fold-core--property-symbol-get-create 'outline 
nil t)) <RET>
from inside Org mode buffer.

I am getting (0.178426995 0 0.0) as a result - takes almost no CPU time.

-- 
Ihor Radchenko // yantar92,
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]