Bug 114043 - Small delay when (re)opening a file
Summary: Small delay when (re)opening a file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, haveBacktrace, perf, regression
Depends on:
Blocks: File-Opening
  Show dependency treegraph
 
Reported: 2017-11-25 14:15 UTC by Telesto
Modified: 2023-08-12 20:05 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (69.84 KB, application/vnd.oasis.opendocument.text)
2017-11-25 14:16 UTC, Telesto
Details
Bibisect log (3.39 KB, text/plain)
2017-11-25 14:18 UTC, Telesto
Details
Callgrind output from master (7.28 MB, application/x-xz)
2017-11-26 19:15 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-11-25 14:15:10 UTC
Description:
Small delay - reduced snappiness - when (re)opening a file

Steps to Reproduce:
1. Download the attached file
2. Open Writer
3. Open the attached file
4. Close the document (back to Start Center)
5. Open Writer (from start center)
6. Open the attached file (again)

The opening of the first file after launch is always a bit slower, that's way they steps 1-4 are needed

Actual Results:  
A small delay before the document shows up

Expected Results:
The document should show up nearly instantaneous,


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 6.0.0.0.alpha1+
Build ID: c24c32bf71b8e64bd0d36e511f554e1f6c015842
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-11-22_23:15:41
Locale: nl-NL (nl_NL); Calc: group threaded


User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Telesto 2017-11-25 14:16:51 UTC
Created attachment 137978 [details]
Example file

Large document as example; a similar delay is noticeable with smaller files, but harder to bibisect
Comment 2 Telesto 2017-11-25 14:18:38 UTC
Created attachment 137979 [details]
Bibisect log

I bisected it to:
author	Ashod Nakashian <ashodnakashian@yahoo.com>	2017-11-03 01:20:50 (GMT)
committer	Ashod Nakashian <ashnakash@gmail.com>	2017-11-06 05:12:21 (GMT)
commit e6b200524bd5f614ab5ece88e8187466e7c40096 (patch)
tree c90e7c8d45f353a43465aa8c43e9881d4d55d53f
parent ffa46ebe6d83c5e812753c41857f31c059f33986 (diff)
TSCP: Store paragraph signature RDF in the paragraph
Comment 3 Buovjaga 2017-11-26 19:15:17 UTC
Created attachment 138000 [details]
Callgrind output from master

Arch Linux 64-bit
Version: 6.0.0.0.alpha1+
Build ID: 008673c23db0c812eb0b48a1c29ab88b48aaa867
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on November 23rd 2017
Comment 4 Buovjaga 2017-11-26 19:17:21 UTC
Delay is due to TSCP feature, but let's ping Ashod regarding the perf.

For me the opening is nearly instantaneous already the first time with 3.6.
Comment 5 Telesto 2018-01-30 19:37:56 UTC
Repro with
Version: 6.1.0.0.alpha0+
Build ID: ea89dabf8b6363972190a6b50c527c418d51c2c7
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-01-27_22:55:15
Locale: nl-NL (nl_NL); Calc: CL
Comment 6 QA Administrators 2019-09-23 02:54:25 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2022-08-14 04:10:55 UTC Comment hidden (obsolete)
Comment 8 bunkem 2023-08-12 19:53:31 UTC
I found the instructions from QA team a bit confusing.

Tested with
Version: 7.4.7.2 / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 4; OS: Mac OS X 10.13.6; UI render: default; VCL: osx
Locale: en-CA (en_CA.UTF-8); UI: en-US
Calc: threaded

I can't see a difference in the file open time between the first and second open of the file from the Startcenter.  It does appear to be faster the second and subsequent times.

I recommend this be closed "resolved".
Comment 9 Telesto 2023-08-12 20:05:48 UTC
I'm not seeing anything wrong indeed. 
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b3053b63c65372627c5fb4df6b4ddcd5e12e16f7
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded