diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2019-10-15 06:57:56 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2019-10-17 08:06:49 +0200 |
commit | 4ee424b3ddc6e483cac8bd76ddc0bcabe48241dc (patch) | |
tree | a552432da4728517cea4f0a11816545ebe178caa /include/formula/tokenarray.hxx | |
parent | 30d803e83390d8a4f475522dc23bcd107f7fdc12 (diff) |
Pre-allocate an ScInterpreter object for each thread...
and reuse them for interpret'ing all cells under the
respective threads. This gives a sizeable win in the execution
time especially for long formula-groups.
Change-Id: Ib340950f21e863b5b821d20c092214d8bc5012aa
Reviewed-on: https://gerrit.libreoffice.org/80845
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/formula/tokenarray.hxx')
-rw-r--r-- | include/formula/tokenarray.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 635e5c1f3907..44122686c158 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -563,6 +563,10 @@ public: void Push( const FormulaTokenArray* ); void Pop(); + /** Reconstruct the iterator afresh from a token array + */ + void ReInit( const FormulaTokenArray& ); + private: const FormulaToken* GetNonEndOfPathToken( short nIdx ) const; }; |