Bug 156297 - In Calc, scrolling becomes very slow when hiding (many) columns
Summary: In Calc, scrolling becomes very slow when hiding (many) columns
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: Scrolling-Performance
  Show dependency treegraph
 
Reported: 2023-07-15 07:52 UTC by Gabro
Modified: 2023-09-18 00:30 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example (7.71 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-07-21 18:24 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabro 2023-07-15 07:52:47 UTC
Description:
Hi, when I hide all columns and only use a few columns to have a cleaner view, the scrolling becomes very slow.

Steps to Reproduce:
1. Open the Calc file.
2. Hide all columns and only keep some of them visible.
3. Do scrolling

Actual Results:
The Scroll becomes slow.

Expected Results:
The scroll should be fast. In Microsoft Excel works.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
None
Comment 1 m_a_riosv 2023-07-15 10:07:43 UTC Comment hidden (obsolete)
Comment 2 Gabro 2023-07-15 10:28:55 UTC Comment hidden (obsolete)
Comment 3 ady 2023-07-15 15:12:15 UTC Comment hidden (obsolete)
Comment 4 Gabro 2023-07-15 17:27:03 UTC
I added additional information to reproduce the case.

1. First, open a new file in Calc and select, for example, the "G" column.
2. Then, press Ctrl+Shift and the right arrow key to select all columns to the right.
3. Right-click on the header of the "G" column and choose "Hide Columns". All of them will be hidden. At this moment, you can scroll and observe that it works more slowly than before.



Version: 7.4.7.2 (x64) / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded


Thanks you
Comment 5 ady 2023-07-16 01:17:39 UTC
The STR in comment 4 are easy-enough to follow.

With _different_ scrolling rates in each version (i.e. other factors could be in place for each version), it could be reproduced since LO 3.3 and up to current Dev 24.2.

OTOH, with the same STR, we cannot really be sure that the performance reduction is originated by _hiding_ (so many) columns, or by applying some/any attribute to such a big area. IOW, is _hiding_ the problem? Or is it the "huge" range of "active" cells? Further investigations would be needed.

There are probably similar reports open already; let's set to NEW for now.
Comment 6 Telesto 2023-07-21 18:24:06 UTC
Created attachment 188514 [details]
Example
Comment 7 Telesto 2023-07-21 18:25:13 UTC
Smooth with
Version: 7.0.7.0.0+ (x64)
Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 8 Kira Tubo 2023-09-15 17:30:35 UTC
Bibisected win64-7.4. 

Note that the commit was introduced to fix Bug 152094.

Regression introduced via: https://git.libreoffice.org/core/+/344d90b20bdf95e9888f916672bbe51a5d700d02


commit 344d90b20bdf95e9888f916672bbe51a5d700d02	[log]
author	Caolán McNamara <caolanm@redhat.com>	Wed Nov 23 17:29:56 2022 +0000
committer	Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>	Wed Dec 14 11:09:08 2022 +0000
tree 9d9d519518044a90c67bbd1aaf42a4a2f5a662d1
parent 94e3ddb97b1eb0761c09ce56e053f85cd215cbf4 [diff]