Re: font-latex extremely slow

Ralf Angeli <[email protected]> Mon, 21 Mar 2005 20:49:17 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Ralf Angeli (2005-03-21) writes:

> * Reiner Steib (2005-03-21) writes:
>
>> I'm editing a 250k LaTeX document.  Once in a while, `font-latex' is
>> getting extremely slow.  My impression is that it might be triggered
>> by jumping around in the file and doing some edition at various
>> places.
> [...]
>> As I don't know if modifications in my document or changes in
>> `font-latex' trigger the slow down, I would like to ask if someone
>> (maybe Ralf) has an idea which revisions of `font-latex' I should
>> compare.
>>
>> In other words: Is there a change which might be suspect to slow down
>> `font-latex-match-*' (especially
>> `font-latex-match-command-with-arguments') dramatically?
>
> Hm, I made a change in latex.el which could negatively impact
> fontification performance:

What I just wrote was probably total nonsense because the mentioned
patch affected filling and not fontification.  D'oh.

Well, anyway.  I looked more closely at the profiling results and I
cannot see a significant difference in average execution time for the
functions in concern.  But the call count in the cases you describe as
bad is much higher.  Did you do exactly the same in exactly the same
time span when you generated the profiling data?

-- 
Ralf