diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-31 10:51:32 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-31 09:01:02 +0000 |
commit | 1dd71d79e15bd8098e7c17c8fcea3748592a902f (patch) | |
tree | 478f7c4c75f357ce584dba5eed9625ca8941da1c /vcl | |
parent | aceaab0839173051e4f6c7b15afe4fc90691abe6 (diff) |
tdf#154486: use importer-local map to deduplicate table names
... instead of SwDoc::GetUniqueTableName. The latter is expensive with
many tables, has O(n^2) complexity with rather large O, and in corner
cases of thousands tables with no or duplicate names, is unacceptably
slow.
Changes the test case import time from 39 s to 23 s on my system.
Change-Id: Ia461c860d56cbbfdcb25bacbb9cca4961ced885e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149817
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
0 files changed, 0 insertions, 0 deletions