office-gobmx/sw/source
Mike Kaganski d893a40c81 tdf#154486: Use known name when inserting the table into the document
... instead of assinging a unique name at insertion time, then changing
to the final value.

As discussed in commit 1dd71d79e1 (tdf#154486:
use importer-local map to deduplicate table names, 2023-03-31), the lookup
for a unique table name has an O(n^2) complexity, and can make loading of
thousands tables impossible.

This changes import time from 23 s to ~2.5 s, and the time now depends on the
number of tables linearly (e.g., 200 000 tables load in ~45 s).

Change-Id: I0f2b5e37db2d370bccbc8c3430f895c864d9a4c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149840
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-31 18:19:44 +02:00
..
core tdf#154486: Use known name when inserting the table into the document 2023-03-31 18:19:44 +02:00
filter tdf#154486: Use known name when inserting the table into the document 2023-03-31 18:19:44 +02:00
ui add some asserts in SwFormatAnchor 2023-03-31 05:52:47 +00:00
uibase add some asserts in SwFormatAnchor 2023-03-31 05:52:47 +00:00