Bug 120532 - Pasting takes a long time to process under certain conditions
Summary: Pasting takes a long time to process under certain conditions
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, perf, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2018-10-11 21:32 UTC by Telesto
Modified: 2018-11-25 17:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (32.16 KB, application/vnd.oasis.opendocument.text)
2018-10-11 21:32 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2018-10-11 21:32:46 UTC
Description:
Pasting takes a long time to process under certain conditions

Steps to Reproduce:
1. Open the attached file
2. Press CTRL+A a few times (selecting everything)
3. CTRL+C
4. CTRL+N + CTRL+V (repeat this 5 times) and

Actual Results:
6.2 takes 3 times longer compared to 5.2

Expected Results:
Something like 5.2


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 6.2.0.0.alpha0+
Build ID: 87e3539d69626780c6d7531b725dd0d64c69e6d8
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-10_06:50:13
Locale: nl-NL (nl_NL); Calc: CL

but not in
Version: 5.2.5.0.0+
Build ID: 78223678b7513ffe46804cb08f2dc5bc899b2bab
CPU Threads: 4; OS Version: Windows 6.29; UI Render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 1 Telesto 2018-10-11 21:32:59 UTC
Created attachment 145631 [details]
Example file
Comment 2 tommy27 2018-10-12 05:16:16 UTC
did you try 5.3.x -> 6.1.x

did the bug appear just after 5.2.5 or only in the 6.2.x branch?
Comment 3 Usama 2018-10-12 07:47:14 UTC
I can confirm this behaviour on:
Version: 6.2.0.0.alpha0+
Build ID: 144da6d5079bcd435e6637cb5cf95305f3ec1306
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-10-12_02:13:01
Locale: tr-TR (tr_TR.UTF-8); Calc: threaded

I've:

Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial3
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; 
Locale: en-US (tr_TR.UTF-8); Calc: group

which is faster. I can notice the page scrolling after paste in 6.2
Comment 4 Telesto 2018-10-12 21:30:29 UTC
(In reply to tommy27 from comment #2)
> did you try 5.3.x -> 6.1.x
> 
> did the bug appear just after 5.2.5 or only in the 6.2.x branch?

I tried LibO 5.3. It's twice as fast compared to 6.2 but slower compared to 5.2. Not sure what to take as reference.
Comment 5 Telesto 2018-10-15 14:16:55 UTC
Repro with
Version: 6.2.0.0.alpha0+
Build ID: b63d48a146c3615f56b6ec83361b3c02ebcbb215
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-13_23:33:20
Locale: nl-NL (nl_NL); Calc: CL

Lots of time spend in: SfxEnumItem<enum SwFootnoteEndPosEnum>::Store	

SfxEnumItem<enum SwFootnoteEndPosEnum>::Store	swlo	[unknown]	0	0x7226120
SwViewShell::LayoutIdle	swlo	[unknown]	0	0x780ebac
SwPosFlyFrame::GetFormat	swlo	[unknown]	0	0x73338d8
SwViewShell::IsViewLocked	swlo	[unknown]	0	0x7333cde
Timer::Invoke	vcllo	[unknown]	0	0x59a553ad
create_SalInstance	vclplug_winlo	[unknown]	0	0x5293b6ee
Point::toPair	vclplug_winlo	[unknown]	0	0x52937610
Comment 6 Buovjaga 2018-11-25 17:33:18 UTC
NEW per comment 3.

Telesto: a bibisect would be nice.