summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2019-10-15 06:57:56 +0530
committerDennis Francis <dennis.francis@collabora.com>2019-10-17 08:06:49 +0200
commit4ee424b3ddc6e483cac8bd76ddc0bcabe48241dc (patch)
treea552432da4728517cea4f0a11816545ebe178caa /include/formula
parent30d803e83390d8a4f475522dc23bcd107f7fdc12 (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')
-rw-r--r--include/formula/tokenarray.hxx4
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;
};