From 40f9888ddc5def405d5a7724cb70f26eca527f01 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Apr 2021 09:40:27 +0200 Subject: tdf#130326 flatten SfxItemPropertyMap which shaves 2% off load time here since we construct a boatload of these Change-Id: I7a57447026f3a1bd6a31f10adf15bee2d1d17c8a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113967 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svl/itemprop.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 68d1a6681c90..da183abecf7b 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include // values from com/sun/star/beans/PropertyAttribute @@ -115,10 +115,11 @@ struct SfxItemPropertyNamedEntry : public SfxItemPropertySimpleEntry }; typedef std::vector< SfxItemPropertyNamedEntry > PropertyEntryVector_t; -class SfxItemPropertyMap_Impl; class SVL_DLLPUBLIC SfxItemPropertyMap { - std::unique_ptr m_pImpl; + std::unordered_map< std::u16string_view, + SfxItemPropertySimpleEntry > m_aMap; + mutable css::uno::Sequence< css::beans::Property > m_aPropSeq; public: SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries ); SfxItemPropertyMap( const SfxItemPropertyMap& rSource ); -- cgit