For every letter I type in LyX, the updateMacros() function is called from BufferView::processUpdateFlags().

What does this function do ? The only feature I see is that when changing a math-macro, all uses of the macro are updated.

Is it really necessary to do this always ? As it is in a "nearly hot path" it took 44% of the time it took to process the insertion of a character in the User's Guide.

This function even takes longer when you have child documents as it iterates through all child documents too.

Maybe this is one of the reasons for all the bugs on slowness:
http://bugzilla.lyx.org/show_bug.cgi?id=5680

Do I miss something critical or is it ok to start cutting some paths ?

Vincent

Reply via email to