diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-16 15:29:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 15:49:59 +0200 |
commit | a68ad22fbef20542284354732ee561efd40f41fa (patch) | |
tree | 5a21a27129ab9430bb14cd75574171672df5af83 /sc | |
parent | a14899f16a55e9fd46e6c6eeaaf608aef27597a0 (diff) |
speed up large sheet with lots of conditions
shaves 10% off view load time
Change-Id: I51078ef81613faa2f8c37530fb7dc77b73192525
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140070
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 7e829725105897da822fe4b0d09c4a04a2666132)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139987
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/compiler.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 5f3b6354c967..585a3c86a9ae 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -33,6 +33,7 @@ #include <queue> #include <vector> #include <memory> +#include <unordered_set> #include <set> #include <com/sun/star/uno/Sequence.hxx> #include <o3tl/typed_flags_set.hxx> @@ -323,7 +324,7 @@ private: formula::FormulaTokenRef operation; }; std::vector< PendingImplicitIntersectionOptimization > mPendingImplicitIntersectionOptimizations; - std::set<formula::FormulaTokenRef> mUnhandledPossibleImplicitIntersections; + std::unordered_set<formula::FormulaTokenRef> mUnhandledPossibleImplicitIntersections; #ifdef DBG_UTIL std::set<OpCode> mUnhandledPossibleImplicitIntersectionsOpCodes; #endif |