summaryrefslogtreecommitdiffstats
path: root/include/rtl
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-05-13 10:32:33 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-05-15 10:39:24 +0200
commit63b897c36afbfb85e0dd45907f76727f7dee494e (patch)
tree9f8270fba8e5fa4dba8821aebc996c83f7b517b0 /include/rtl
parentUpdate git submodules (diff)
downloadcore-63b897c36afbfb85e0dd45907f76727f7dee494e.tar.gz
core-63b897c36afbfb85e0dd45907f76727f7dee494e.zip
Use less memory for ScMatrix::Collect
The old definition would have unused mnCount s. The template has been modified to expand functionality. Redefined operator for sum and sum square. Memory usage change explanation: The old code would use an array of IterateResultMultiple. Then use them to iterate. The count is stored in a last IterateResultMultiple. So if we are inputed N operators we are: Wasting N counters. Wasting 1 accumulator. Solution: We move the array to the accumulator place (inside the structure). Then we use only N accumulators. The structure with the array has only 1 counter. Change-Id: I76de74214d9bcb245f009e1226020bfe4dce40d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115542 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/rtl')
0 files changed, 0 insertions, 0 deletions