diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-05-21 14:26:27 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-05-21 16:55:41 +0100 |
commit | 34f0e4f42594adb97bdb64e5f2e8f00801b48e2e (patch) | |
tree | 3bba2f81c9ea3b34580f76cad03aad2af979bb2d /sc/inc | |
parent | 1554fc9611e44d55eacc577bfed51d0f9c1c3a25 (diff) |
ODS load perf: 7% of the time re-creating sheet name strings.
No need to create cached versions of stringified sheet tokens for
a given grammar at great for every formula that we compile; defer
until use. Is this a large cost on save ?
Change-Id: I8058ed564dbdc00ff45c02cb483c1a20a48af272
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/compiler.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 527ad760dd09..8b5158c81b14 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -328,7 +328,9 @@ private: bool mbCloseBrackets; // whether to close open brackets automatically, default TRUE bool mbRewind; // whether symbol is to be rewound to some step during lexical analysis std::vector<sal_uInt16> maExternalFiles; - std::vector<OUString> maTabNames; + + std::vector<OUString> maTabNames; /// sheet names mangled for the current grammer for output + std::vector<OUString> &GetSetupTabNames() const; /// get or setup tab names for the current grammar bool NextNewToken(bool bInArray = false); |