diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-02-10 10:25:13 +0100 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-02-10 11:10:58 +0100 |
commit | b18b5b7edf3d14ef5f0efe53e367f88a423088c4 (patch) | |
tree | 91cd749ab7baf6bf1e46616d1c727fe8e599e0c4 /sc/inc/tokenarray.hxx | |
parent | 615fae2f67028f3c5c51c70c77dbaa9b9f3856d6 (diff) |
tdf#89281 fix performance regression of XLS import
The fix for Bug 76611 caused ~20% performance loss in XLS import.
With optional cloning of ScTokenArray of the shared XLS formulas
depending on the need of address wrapping, it is possible to gain
back near the original performance.
Note: The original patch for Bug 76611 has already got an unit test,
too (see wrapped-refs.xls), and that unit test works with this
improved patch, too.
Change-Id: Ibfb59d1543ef9c4b8a075d5c4e37f77ab451aaa0
Diffstat (limited to 'sc/inc/tokenarray.hxx')
-rw-r--r-- | sc/inc/tokenarray.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index ab1e9419042b..d1a4bed9d879 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -239,7 +239,7 @@ public: */ OUString CreateString( sc::TokenStringContext& rCxt, const ScAddress& rPos ) const; - void WrapReference( const ScAddress& rPos, SCCOL nMaxCol, SCROW nMaxRow ); + bool WrapReference( const ScAddress& rPos, SCCOL nMaxCol, SCROW nMaxRow, bool bQueryNeedWrap = false); #if DEBUG_FORMULA_COMPILER void Dump() const; |