[Libreoffice-commits] core.git: sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 2 09:23:40 UTC 2019


 sw/source/core/txtnode/ndtxt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ba748771cadb294d6af7b7c784c33ccf8632dff1
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Apr 2 08:20:13 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Apr 2 11:23:11 2019 +0200

    tdf#122926 FILEOPEN ODT Slower compared to the past (part2)
    
    Further improvement: on my machine, this takes the time from 8.9s to
    5.7s
    
    Change-Id: Ic7f7c46b10fbb671ff5bbf9d0a6a0195696741bc
    Reviewed-on: https://gerrit.libreoffice.org/70112
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 377618f2cab8..6bf96c6d6a2c 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1394,7 +1394,7 @@ void SwTextNode::Update(
             bool bAtLeastOneBookmarkMoved = false;
             bool bAtLeastOneExpandedBookmarkAtInsertionPosition = false;
             // A text node already knows its marks via its SwIndexes.
-            std::unordered_set<const sw::mark::IMark*> aSeenMarks;
+            o3tl::sorted_vector<const sw::mark::IMark*> aSeenMarks;
             const SwIndex* next;
             for (const SwIndex* pIndex = GetFirstIndex(); pIndex; pIndex = next )
             {


More information about the Libreoffice-commits mailing list