Bug 156297 - In Calc, scrolling becomes very slow when hiding (many) columns
Summary: In Calc, scrolling becomes very slow when hiding (many) columns
Status: RESOLVED FIXED
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: Caolán McNamara
URL:
Whiteboard: target:26.2.0 target:25.8.1
Keywords: bibisected, bisected, perf, regression
: 153399 155286 (view as bug list)
Depends on:
Blocks: Scrolling-Performance
  Show dependency treegraph
 
Reported: 2023-07-15 07:52 UTC by Gabro
Modified: 2025-08-22 16:31 UTC (History)
7 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]
Comment 9 Buovjaga 2025-05-10 15:26:46 UTC
Still sluggish.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9bc5b89c149497a83117edfadc3fb0b96d2f9899
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 10 Caolán McNamara 2025-08-22 09:31:43 UTC
Lets revert, text placement has moved on since the original thing anyway so lets restore the original optimization
Comment 11 Commit Notification 2025-08-22 11:11:08 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a6dc33e5b4af22ef150ca328ad67132e85ec3dbe

Resolves: tdf#156297 restore copy area optimization

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2025-08-22 13:00:22 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/3fa6bed062d7fd840eb75c18390e0384695af827

Resolves: tdf#156297 restore copy area optimization

It will be available in 25.8.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Buovjaga 2025-08-22 13:09:35 UTC
*** Bug 153399 has been marked as a duplicate of this bug. ***
Comment 14 Buovjaga 2025-08-22 16:31:30 UTC
*** Bug 155286 has been marked as a duplicate of this bug. ***