• Noel Grandin's avatar
    tdf#63640 FILEOPEN/FILESAVE: particular .odt loads/saves very slow, part2 · f1ed27ee
    Noel Grandin yazdı
    Use the existing sorting functionality in SfxItemPool and extend it to
    search for NameOrIndex item in SvxUnoNameItemTable
    
    This is a little tricky in that we are defining only a partial ordering
    over the CntUnencodedStringItem (and their subclasses) items.
    Partial because I can only use the part of
    the item that is not randomly mutated by various code, which is why
    the other fields in the subclasses are mostly out of bounds.
    
    I had to exclude FillBitmapItem because it triggers a unit test
    failure and I cannot figure out why that specific item does
    not play nice with this optimisation.
    
    After this optimisation, the load time goes from
    3.6s to 2s on my machine.
    
    Change-Id: I52d58c68db2536b69a7b0a9611a2b4c703bc4928
    Reviewed-on: https://gerrit.libreoffice.org/71461
    Tested-by: Jenkins
    Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
    f1ed27ee
Adı
Son kayıt (commit)
Son güncelleme
..
inc/pch Loading commit data...
qa Loading commit data...
source Loading commit data...
unx/source/svdde Loading commit data...
util Loading commit data...
AllLangMoTarget_svl.mk Loading commit data...
CppunitTest_svl_inetcontenttype.mk Loading commit data...
CppunitTest_svl_itempool.mk Loading commit data...
CppunitTest_svl_items.mk Loading commit data...
CppunitTest_svl_lngmisc.mk Loading commit data...
CppunitTest_svl_lockfiles.mk Loading commit data...
CppunitTest_svl_notify.mk Loading commit data...
CppunitTest_svl_qa_cppunit.mk Loading commit data...
CppunitTest_svl_urihelper.mk Loading commit data...
JunitTest_svl_complex.mk Loading commit data...
Library_fsstorage.mk Loading commit data...
Library_passwordcontainer.mk Loading commit data...
Library_svl.mk Loading commit data...
Makefile Loading commit data...
Module_svl.mk Loading commit data...
README Loading commit data...