[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opening a 0.5 MB org file is slow
From: |
Ihor Radchenko |
Subject: |
Re: opening a 0.5 MB org file is slow |
Date: |
Thu, 01 Oct 2020 16:44:18 +0800 |
> + redisplay_internal (C function) 1724 82%
> Not sure what to do with stuff on the C level.
Look inside that branch. Most likely redisplay is calling font-lock
staff. You need to check what particular part of fontification is slow.
Best,
Ihor
Uwe Brauer <oub@mat.ucm.es> writes:
>>>> "JJ" == Jeremie Juste <jeremiejuste@gmail.com> writes:
>
>> Hello Uwe,
>> Very well, it seems that we are on the right track. So you might gain
>> some speed by preventing some minor modes to load at the beginning and
>> load only when you need them.
>
>> Like Ihor Radchenko mentioned in his previous a great way to diagnose
>> the issu would be the following:
>
>> 1. M-x profiler-start cpu
>> 2. open your file
>> 3. M-x profiler-report
>
>> It will let you see which functions are slowing you down.
>
> Thanks! I did it. But I am a bit puzzled about the outcome:
>
> + redisplay_internal (C function) 1724 82%
> + command-execute 215 10%
> + ... 117 5%
> + timer-event-handler 22 1%
> global-orglink-mode-check-buffers 1 0%
>
> Not sure what to do with stuff on the C level.
>
> Uwe