diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2019-05-29 10:28:22 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2019-10-01 18:10:09 +0200 |
commit | 845e1cdca3349c72e3083186502285d5b776abbe (patch) | |
tree | a4496df89f4b7f21a1ab98c3e672b9d75d1a52e2 /sc/inc/document.hxx | |
parent | 1028841feb815dfcfee97422f3de1e06e48db580 (diff) |
Thread a group of formula-groups together if possible
Just before about to thread a FG, look to left and right for
"mutually" independent FG's with some restrictions and thread
this group of FG's together treating it as a single but longer
computation load.
For now the restrictions are :-
All formula-groups in a FG "group" must have :-
1. Same length
2. Same relative position.
3. Same weight.
This is very helpful in cases similar to the below :
There are lots of (say 32) consecutive formula-groups
all with same "small" length (say 8) and same weight.
By conventional formula-group-threading the speed-up is
limited to 8x even if we have a 256 core processor, but
with this threading-multiple-formula-groups patch
(in this case) we can get a speed-up of 256x provided
we have a >= 256 core machine. So effectively with this
patch the speed-up is now only limited to the number of
cells in a range consisting of mutually indepdendent
formula-groups rather than number of cells in each
formula-group.
Change-Id: Ib25b5abbb583fa207e8befff9a908d14313f3d51
Reviewed-on: https://gerrit.libreoffice.org/79485
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 9ac4bca15288..2b2ae8d99c0c 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -2148,8 +2148,8 @@ public: */ void SC_DLLPUBLIC SetFormulaResults( const ScAddress& rTopPos, const double* pResults, size_t nLen ); - const ScDocumentThreadSpecific& CalculateInColumnInThread( ScInterpreterContext& rContext, const ScAddress& rTopPos, size_t nLen, unsigned nThisThread, unsigned nThreadsTotal); - void HandleStuffAfterParallelCalculation( const ScAddress& rTopPos, size_t nLen ); + const ScDocumentThreadSpecific& CalculateInColumnInThread( ScInterpreterContext& rContext, const ScRange& rCalcRange, unsigned nThisThread, unsigned nThreadsTotal); + void HandleStuffAfterParallelCalculation( SCCOL nColStart, SCCOL nColEnd, SCROW nRow, size_t nLen, SCTAB nTab ); /** * Transfer a series of contiguous cell values from specified position to |