speed up simple use of NamedValueCollection

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 12 May 2022 16:03 UTC

where instantiating and allocating a whole map just to extract a single key is way inefficient

Change-Id: I55248bc71a9e8826cab9b76fa6916bfa888efa0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134226

d03e7a8fba54 speed up simple use of NamedValueCollection
comphelper/source/misc/documentinfo.cxx | 3 +-
comphelper/source/misc/namedvaluecollection.cxx | 47 +++++++++++++++++++++-
connectivity/source/commontools/dbmetadata.cxx | 3 +-
connectivity/source/drivers/mysql_jdbc/YDriver.cxx | 8 ++--
.../source/core/dataaccess/databasedocument.cxx | 3 +-
dbaccess/source/core/dataaccess/datasource.cxx | 3 +-
dbaccess/source/ui/app/AppController.cxx | 9 ++---
dbaccess/source/ui/uno/copytablewizard.cxx | 3 +-
framework/source/loadenv/loadenv.cxx | 3 +-
include/comphelper/namedvaluecollection.hxx | 27 +++++++++++++
reportdesign/source/ui/report/ReportController.cxx | 3 +-
scripting/source/dlgprov/dlgprov.cxx | 3 +-
sfx2/source/doc/objmisc.cxx | 15 +++----
sfx2/source/view/frmload.cxx | 3 +-
sfx2/source/view/sfxbasecontroller.cxx | 4 +-
ucb/source/ucp/tdoc/tdoc_docmgr.cxx | 4 +-
xmloff/source/xforms/xformsimport.cxx | 3 +-
17 files changed, 97 insertions(+), 47 deletions(-)

Upstream: cgit.freedesktop.org


  • Share