Bug 106289 - Global find-and-replace for big document (35,000 words) can take over an hour.
Summary: Global find-and-replace for big document (35,000 words) can take over an hour.
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.5.1 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks:
 
Reported: 2017-03-03 01:38 UTC by Marco McClean
Modified: 2017-10-30 10:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco McClean 2017-03-03 01:38:30 UTC
Global find-and-replace for a big document (40,000 words) can take hours.

I asked about this on libreoffice.org, and was answered by Mike Kaganski: "As a workaround, I'd suggest to try to switch to Web view for a time when you do such operations, and switch back afterwards."

I switched to web view and tried a test: I tell it to find all places of two consecutive paragraph breaks --meaning \p\p in Tools, Add Ons, Alternative Searching and checkbox Regular Expressions, and replace them with characters yyy then I tell it to find all places of single paragraph breaks and replace them with a space, then I tell it to replace all places of yyy with two consecutive paragraph breaks, then I replace all instances of two consecutive spaces with one space.

Switching to web view solved the problem of the screen stuttering and redrawing for every individual replace, but the process took just as long.

For comparison, in Microsoft Word (Office 97, I think, and Office 2003), this whole process could be completed in less than a minute.
Comment 1 Xisco Faulí 2017-03-03 09:38:20 UTC Comment hidden (obsolete)
Comment 2 QA Administrators 2017-09-29 08:57:19 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2017-10-30 10:50:49 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20171030