Bug 163061 - Editing text in a text box is sometimes very slow
Summary: Editing text in a text box is sometimes very slow
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Textbox Performance
  Show dependency treegraph
 
Reported: 2024-09-20 10:15 UTC by Hossein
Modified: 2024-10-01 13:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-09-20 10:15:53 UTC
Description:
Editing text in a text box is sometimes very slow. A visible example of such slowness is when you select some text in a text box, and change the fonts size. Sometimes it takes a few seconds, which is too much. Writer does that for huge amount of text in a few milliseconds.

Steps to Reproduce:
1. Open attachment 183252 [details]
2. Go to page 2.
3. Select the text in the big text box (click and press ctrl+a)
4. Increase font size (use ctrl+])

Actual Results:
In debug mode, the delay is more than 1 second. In release mode, the delay is noticeable, but is sometimes less than 1 second. To reproduce more delay, set the font to 6 pt and then 96 pt, which causes more delay

Expected Results:
Changing formatting of a small amount of text should happen immediately, ideally in a few milliseconds or less.

Reproducible: Always


User Profile Reset: No


Additional Info:
Delay is more than 1 second in LO 25.2 dev master with debug mode:
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f317746f55044927a180657f81e21d662102b0c5
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded

Delay is noticeable in LO 24.8 
Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2024-09-20 22:43:21 UTC
I can't reproduce with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d500848976b6244048684a9972322b582559910a
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

I guess you have restarting in Safe Mode.

Please attach a sample where it happens.
Comment 2 Hossein 2024-10-01 13:10:38 UTC
Confirming as per tdf#163062 comment 2. Rafael says:
> on a debug build, increasing/decreasing the font size is terribly slow.