On Sat, Jan 17, 2009 at 12:50:46PM +0100, Vincent van Ravesteijn wrote:
> 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.

I think so, too. Stefan might have authorative answers, though.

> 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 ?

I would expect that there cannot be much harm done outside math.

Andre'

Reply via email to