]> git.lyx.org Git - features.git/commit
Refine fix for bug #7183.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 20 Dec 2010 18:15:39 +0000 (18:15 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 20 Dec 2010 18:15:39 +0000 (18:15 +0000)
commit8b88c3edde87046db0d5898318a7c071cec4c96b
tree9a573b9da1cdc64e6862c86d29c93eb36a7190c4
parent289a52c9c9f6439a4b5fa33f6633cbe06cb40614
Refine fix for bug #7183.
Using updateMacros() entails a performance hit when loading a document
with really a lot of macros. So, revert to the original strategy of
tracking macros at creation time. In order to also account for macros
defined in a child document, the child is now loaded by the include inset
at construction time instead of after the master has finished loading.
This strategy mimics what updateMacros() was accomplishing without
incurring in its drawbacks, such that loading time is practically
unchanged even with a thousand macros.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36968 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/Buffer.h
src/insets/InsetInclude.cpp
src/mathed/MathParser.cpp