Bug 137086 - Very slow deleting filtered rows in spreadsheet
Summary: Very slow deleting filtered rows in spreadsheet
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks:
 
Reported: 2020-09-28 06:44 UTC by Kevin Suo
Modified: 2021-09-15 03:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test ODS file (69.22 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-09-28 06:44 UTC, Kevin Suo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2020-09-28 06:44:23 UTC
Created attachment 165902 [details]
test ODS file

The attached spreadsheet contains two simple columns with 10000 records. When filter some records in the autofilter and then trying to delete those records, the delete operation is very slow.

Steps to Reproduce:

1. Open the attached spreadsheet, filter the records by deselecting "0" in column B using the autofilter.

2. Try to delete the filtered records by selecting all the whole rows.

Current Behaviour:
The delete operation takes 35s on my PC.

Expected:
The delete operation should be fast, within 5s. It takes only 5s in Microsoft Excel 2020.

--------------------

Reproduced in both:

Version: 6.4.6.2
Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3; 
Locale: zh-CN (zh_CN.UTF-8); UI-Language: en-US
Calc: threaded

Version: 7.1.0.0.alpha0+
Build ID: 2cddaa6e199ed8bb6185b7825791199f9da4a670
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
Calc: threaded

Fedora 32 x64.
Comment 1 Kevin Suo 2020-09-28 06:53:24 UTC
It takes 15s on my PC, not 35. Still very slow.
Comment 2 m_a_riosv 2020-10-03 11:40:26 UTC
It takes for me about 7 seconds.
Version: 6.4.7.1 (x64)
Build ID: 32fe9ceb49bbaa24397ab3ebad5eb8f5287d8086
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
Comment 3 Kevin Suo 2020-10-03 12:59:56 UTC
(In reply to m.a.riosv from comment #2)
What's your hardware specs?
Comment 4 m_a_riosv 2020-10-06 23:58:05 UTC
Intel I7-7500 2,7GHz, 8 GB. Graphics Intel HD620
Comment 5 Xisco Faulí 2020-11-11 14:21:11 UTC
it takes 10 seconds in

Version: 7.1.0.0.alpha1+
Build ID: 03cafc2ab6b1678f82e9a30b6f81e505660ee702
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

and my computer is old and slow, to be honest.
@Kevin, did you try with a clean profile ?
Comment 6 Telesto 2020-11-12 10:19:47 UTC Comment hidden (obsolete)
Comment 7 Telesto 2020-11-12 10:22:12 UTC Comment hidden (obsolete)
Comment 8 Telesto 2020-11-12 10:23:38 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2020-11-12 11:21:02 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2020-11-12 12:07:28 UTC Comment hidden (obsolete)
Comment 11 Kevin Suo 2020-12-03 00:39:36 UTC
Well, the issue was initially reported regarding deleting the rows after the autofilter is set, not about the autofilter itself as mentioned in comment 6. I still reproduce this issue with the fix of bug 133878. This was wrongly marked as duplicate.
Comment 12 Xisco Faulí 2021-02-15 18:00:21 UTC
Hi Kevin Suo,
Could you please try to reproduce it with a master build from
http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the master build
Comment 13 QA Administrators 2021-08-15 03:46:50 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2021-09-15 03:38:49 UTC
Dear Kevin Suo,

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-FollowUp