office-gobmx/sw/source
Balazs Santha e463d23955 tdf#140731: sw transliteration: avoid too many redlines
As a workaround for the performance regression
from commit 2d3c77e9b1
(tdf#109266 sw change tracking: track transliteration),
switch off redlining to avoid ~freezing, if a single
transliteration could result too many (>~500) redlines.

A single transliteration creates n redlines
for n paragraphs of the selected text, except in
the case of transliterating to title case, where it
creates n redlines for n words. It's very easy
to freeze Writer, because Writer's slowing down with
n redlines is described by an O(n²) (quadratic) time
complexity. Eg. in an experiment, title casing
~660 words was 6 sec, but ~3000 words was 85 sec,
regarding to creating 660 vs 3000 redlines.

Note: this is a partial revert of commit
2d3c77e9b1, if the
selection contains more than 500 paragraphs (or in the
case transliterating to title case, ~500 words).

Change-Id: Iad98943cc9e1ed64aa9779e49ee3e941abad02ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111637
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-03-24 15:08:18 +01:00
..
core tdf#140731: sw transliteration: avoid too many redlines 2021-03-24 15:08:18 +01:00
filter tdf#141173 docx export: revert fdo#75604: File Corruption 2021-03-24 13:39:14 +01:00
ui tdf#140590 Writer crash in Tools>Chapter Numbering 2021-03-18 12:31:11 +01:00
uibase sw bibliography, refer to a page: add open hyperlink context menu 2021-03-24 12:48:04 +01:00