> + 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 <o...@mat.ucm.es> writes:

>>>> "JJ" == Jeremie Juste <jeremieju...@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 

Reply via email to