vcl/inc/svdata.hxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2c115e8892cb26040c02b12b7b374430728361eb
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Dec 22 10:31:46 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Jan 1 14:31:56 2026 +0100

    tdf#166684 used unordered_set for maCacheOwners
    
    maCacheOwners is pretty much a write-only data-structure, we very seldom 
read it,
    which makes unordered_set a better fit.
    Shaves about 1% off the time here.
    
    Change-Id: Ife37d56c64ecfa0e658ee42d40f425d2bc3ac670
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196065
    Reviewed-by: Tomaž Vajngerl <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    (cherry picked from commit a2d8fe60153364d9f94de344e47a57907a98354c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196361
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index df49ad1e7d56..3b3773e4cdac 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -55,6 +55,7 @@
 #include <optional>
 #include <vector>
 #include <unordered_map>
+#include <unordered_set>
 #include "schedulerimpl.hxx"
 #include <basegfx/DrawCommands.hxx>
 
@@ -402,7 +403,7 @@ struct ImplSVData
 
     css::uno::Reference< css::lang::XComponent > mxAccessBridge;
     std::unordered_map< int, OUString > maPaperNames;
-    o3tl::sorted_vector<CacheOwner*> maCacheOwners;
+    std::unordered_set<CacheOwner*> maCacheOwners;
 
     css::uno::Reference<css::i18n::XCharacterClassification> m_xCharClass;
 

Reply via email to