diff options
author | Aron Budea <baron@caesar.elte.hu> | 2016-11-10 07:47:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-14 09:48:06 +0000 |
commit | 2cee32bd4f90cc70a44755f9a8e4a6e9c6c6f2d9 (patch) | |
tree | e10b3be84fce4bef2325db5a0938fbe3af300538 /rsc | |
parent | a24b62dc02cd21a992e78c551de594f7167fe7b7 (diff) |
tdf#94262: fix performance of MakeTree_Impl(...) in templdlg.cxx
1. replace 2nd level for-loop with a helper unordered_map that
maps style name to its pointer
2. replace 3rd level for-loop with std::lower_bound, since the
children are inserted sorted (based on natural sort)
...and a few related, minor changes.
Change-Id: I48f59f2e1ca416de1e2957e0d1d3708ed6e67112
Reviewed-on: https://gerrit.libreoffice.org/30744
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'rsc')
0 files changed, 0 insertions, 0 deletions