]> git.lyx.org Git - features.git/commit
Speedup the expandLabel by avoiding the recursive part. The labelstrings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 19 Apr 2009 20:05:26 +0000 (20:05 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 19 Apr 2009 20:05:26 +0000 (20:05 +0000)
commit8d0fcad676b6358bdb8842219f574c9a80f776d3
tree3fb4d29deac9e7ad9c2b98aa16b42c0254c8e10f
parent1f8e611c0388068af5904d8e63e9662c911a9ab8
Speedup the expandLabel by avoiding the recursive part. The labelstrings
are computed recursively to get rid of any \thexxx string by the method
flattenLabelString. The values are cached in Counter objects.

On my mac, the total time (updatelabels+redraw) goes down by 30%. YMMV.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29342 a592a061-630c-0410-9148-cb99ea01b6c8
src/Counters.cpp
src/Counters.h
src/Paragraph.cpp