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: Bruno Barbier
Subject: Re: Things got very slow: profiler output
Date: Thu, 29 Feb 2024 10:25:07 +0100

Bruno Barbier <brubar.cs@gmail.com> writes:

> Hi William,
>
> William Denton <william@williamdenton.org> writes:
>
>> I rebuilt Org and Emacs from the development trees and something is wrong, 
>> because some Org files I use regularly have become incredibly slow to use.  
>> I rarely use the profiler and don't know what to make of what it says, but I 
>> opened a file and ran it while I moved around and expanded and collapsed 
>> some headings for a minute or so.  (It was so slow that it took me a minute 
>> to do what would usually take me a few seconds.)  I'll paste the results 
>> below.  Does that say anything useful?  There is a little LaTeX in the file 
>> but not much.
>>
>> Any help on interpreting this would be welcome.  I can try reverting to an 
>> earlier Git commit tomorrow.
>>
>> Bill
>>
>>      Samples    %   Function
>>        73203  70% - redisplay_internal (C function)
>>        71496  68%  - jit-lock-function
>>        71488  68%   - jit-lock-fontify-now
>>        71472  68%    - jit-lock--run-functions
>>        71472  68%     - #<compiled 0x1baf5fbd9c5fbb3f>
>>        71472  68%      - font-lock-fontify-region
>>        71468  68%       - font-lock-default-fontify-region
>>        71436  68%        - font-lock-fontify-keywords-region
>>        71124  68%         - org-do-latex-and-related
>>        71124  68%            re-search-forward
>>          228   0%         + org-activate-folds
>>           16   0%         + org-fontify-meta-lines-and-blocks
>>           12   0%         + org-activate-footnote-links
>>            8   0%           org-activate-dates
>>            8   0%         + org-activate-links
>>            4   0%           org-do-emphasis-faces
>>            4   0%           org-fontify-drawers
>>            4   0%           org-raise-scripts
>>           28   0%        + font-lock-unfontify-region
>>            4   0%        + font-lock-extend-region-wholelines
>>            4   0%      text-property-any
>>        30951  29% + command-execute
>>           ...
>
> Did you customize org-latex-and-related-regexp ?  Is it still slow if you set
> this to nil (which is apparently the default value) ?
>
> If not, telling which version of Org, that you were using before, might help.

Oops, sorry, the customization option is:

    org-highlight-latex-and-related
    
(the other value is computed by Org)

You may try to change that option org-highlight-latex-and-related to see
if it helps.


Bruno

>
> Bruno
>
>
>>
>> --
>> William Denton
>> https://www.miskatonic.org/
>> Librarian, artist and licensed private investigator.
>> Toronto, Canada



reply via email to

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