Kaydet (Commit) ba748771 authored tarafından Noel Grandin's avatar Noel Grandin

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: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ef0c1a32
...@@ -1394,7 +1394,7 @@ void SwTextNode::Update( ...@@ -1394,7 +1394,7 @@ void SwTextNode::Update(
bool bAtLeastOneBookmarkMoved = false; bool bAtLeastOneBookmarkMoved = false;
bool bAtLeastOneExpandedBookmarkAtInsertionPosition = false; bool bAtLeastOneExpandedBookmarkAtInsertionPosition = false;
// A text node already knows its marks via its SwIndexes. // 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; const SwIndex* next;
for (const SwIndex* pIndex = GetFirstIndex(); pIndex; pIndex = next ) for (const SwIndex* pIndex = GetFirstIndex(); pIndex; pIndex = next )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment