summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-02 17:15:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-03 14:31:23 +0200
commita5010d00be3a2dc1c89935d473b20fcbc127da86 (patch)
tree38d50f964f05e9e2cde2cba0baecc5101b013396 /sc
parent02b577f2f2f8bfea144ad156a55eec6e2b06ad7b (diff)
tdf#88109 improve autofill perf (2)
make SvxWeightItem sortable, which shaves off 1% and turn the tree search off while performing this operation, which shaves off about 25% of the time on my machine. Change-Id: I94358ed565a0d9f1cc0ddb36b8349e83c9deb959 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95369 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 9073a47b99e22585c6d1603dd747cb14f081fca1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95414
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table1.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 022a57f2503f..16e6e5d594d5 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -464,6 +464,8 @@ bool ScTable::SetOptimalHeight(
ScProgress* pProgress = GetProgressBar(nCount, GetWeightedCount(), pOuterProgress, pDocument);
+ mpRowHeights->enableTreeSearch(false);
+
GetOptimalHeightsInColumn(rCxt, aCol, nStartRow, nEndRow, pProgress, nProgressStart);
SetRowHeightRangeFunc aFunc(this, rCxt.getPPTY());
@@ -472,6 +474,8 @@ bool ScTable::SetOptimalHeight(
if ( pProgress != pOuterProgress )
delete pProgress;
+ mpRowHeights->enableTreeSearch(true);
+
return bChanged;
}