Bug 134187 - Inserting a table of content slowish
Summary: Inserting a table of content slowish
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2020-06-21 11:19 UTC by Telesto
Modified: 2022-07-25 21:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (890.51 KB, application/vnd.oasis.opendocument.text)
2020-06-21 11:19 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-06-21 11:19:10 UTC
Description:
Inserting a table of content slowish

Steps to Reproduce:
1. Open the attached file
2. Press CTRL+Enter at the start
3. Insert -> table of content -> Table of content

Actual Results:
Takes 14 seconds

Expected Results:
4 seconds


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 43c60ce1ac7629a1462e927e6ff937469f58f743
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-06-21 11:19:27 UTC
Created attachment 162249 [details]
Example file
Comment 2 BogdanB 2020-06-21 20:39:13 UTC
4 seconds in
Version: 7.1.0.0.alpha0+
Build ID: a3c8ea5e644ca2fc04de9f01ba9f8ace47f520f0
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-06-17_02:21:20
Calc: threaded
Comment 3 Xisco Faulí 2020-06-22 13:25:02 UTC
7 seconds in 

Version: 7.1.0.0.alpha0+
Build ID: 70479e1f4cb3c120f46239a648e65f035af2922d
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

and 22 in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.19; Render: default; 

Locale: en-US (en_US.UTF-8)

@Telesto, what about in your pc with older versions ?
Comment 4 Telesto 2020-06-22 20:41:25 UTC
22 seconds with
Version: 6.0.6.0.0+
Build ID: c30963b8b4bbbe42a24b97aafa161eff9d7ccdd4
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL

10 seconds with
Version: 5.2.5.0.0+
Build ID: a4d4fbeb623013f6377b30711ceedb38ea4b49f8
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-2, Time: 2016-12-24_14:43:55
Locale: nl-NL (nl_NL); Calc: group

17 with
Version: 5.0.6.3
Build ID: 490fc03b25318460cfc54456516ea2519c11d1aa
Locale: en-US (nl_NL)

3 seconds with
4.4.7.2
Comment 5 Dieter 2020-06-30 08:48:16 UTC
15 seconds with

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 33a720ab802491f15b247e09755cd36205b6f435
CPU-Threads: 4; BS: Windows 10.0 Build 19041; UI-Render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

=> NEW (perhaps Windows only?)
Comment 6 Telesto 2020-07-06 15:58:49 UTC
CPU Time
1 of 46: 16.7% (0.296s of 1.775s)

icuuc67.dll ! icu_67::RuleBasedBreakIterator::handleNext - [unknown source file]
icuuc67.dll ! func@0x100f4d80 + 0x14f - [unknown source file]
icuuc67.dll ! func@0x100f4f10 + 0x15c - [unknown source file]
icuuc67.dll ! func@0x100f54f0 + 0x4b - [unknown source file]
icuuc67.dll ! icu_67::RuleBasedBreakIterator::preceding + 0x9a - [unknown source file]
mergedlo.dll ! i18npool::BreakIterator_Unicode::getLineBreak + 0x9c - breakiterator_unicode.cxx:502
mergedlo.dll ! i18npool::BreakIteratorImpl::getLineBreak + 0x58 - breakiteratorImpl.cxx:281
swlo.dll ! SwTextGuess::Guess + 0xa7e - guess.cxx:409
swlo.dll ! SwTextPortion::Format_ + 0x129 - portxt.cxx:305
swlo.dll ! SwTextPortion::Format + 0x2d - portxt.cxx:456
swlo.dll ! SwLineLayout::Format + 0x13 - porlay.cxx:247
swlo.dll ! SwTextFormatter::BuildPortions + 0x669 - itrform2.cxx:545
swlo.dll ! SwTextFormatter::FormatLine + 0x324 - itrform2.cxx:1611
swlo.dll ! SwTextFrame::FormatLine + 0x85 - frmform.cxx:1188
swlo.dll ! SwTextFrame::Format_ + 0x77e - frmform.cxx:1547
swlo.dll ! SwTextFrame::Format_ + 0x188 - frmform.cxx:1719
swlo.dll ! SwTextFrame::Format + 0x519 - frmform.cxx:1908
swlo.dll ! SwContentFrame::MakeAll + 0x934 - calcmove.cxx:1521
swlo.dll ! SwFrame::OptPrepareMake + 0x131 - calcmove.cxx:394
swlo.dll ! SwLayAction::FormatContent_ + 0x6e - layact.cxx:1826
swlo.dll ! SwLayAction::FormatContent + 0x2b2 - layact.cxx:1640
swlo.dll ! SwLayAction::InternalAction + 0x522 - layact.cxx:560
swlo.dll ! SwLayAction::Action + 0xd3 - layact.cxx:345
swlo.dll ! SwViewShell::CalcLayout + 0x102 - viewsh.cxx:1000
swlo.dll ! SwEditShell::CalcLayout + 0x6e - edws.cxx:110
swlo.dll ! SwEditShell::InsertTableOf + 0x9a - edtox.cxx:135
swlo.dll ! SwWrtShell::InsertTableOf + 0x2d - wrtsh2.cxx:322
swlo.dll ! SwTOXMgr::UpdateOrInsertTOX + 0x7fb - toxmgr.cxx:427
swuilo.dll ! SwMultiTOXTabDialog::Ok + 0x104 - cnttab.cxx:330
mergedlo.dll ! SfxTabDialogController::LinkStubOkHdl + 0x22 - tabdlg.cxx:357
mergedlo.dll ! SalInstanceButton::LinkStubClickHdl + 0x58 - salvtables.cxx:2438
mergedlo.dll ! std::_Func_impl_no_alloc<<lambda_67b6276293fc8a105bc1aa2d0fefa6ae>,void>::_Do_call + 0x15 - functional:926
mergedlo.dll ! Control::ImplCallEventListenersAndHandler + 0xbc - ctrl.cxx:315
mergedlo.dll ! Button::Click + 0x46 - button.cxx:124
mergedlo.dll ! PushButton::Tracking + 0xc1 - button.cxx:1191
mergedlo.dll ! vcl::Window::EndTracking + 0x146 - window2.cxx:307
mergedlo.dll ! ImplHandleMouseEvent + 0xd7e - winproc.cxx:709
mergedlo.dll ! ImplHandleSalMouseButtonUp + 0x8d - winproc.cxx:2066
mergedlo.dll ! ImplWindowFrameProc + 0x208 - winproc.cxx:2404
mergedlo.dll ! SalFrame::CallCallback + 0x14 - salframe.hxx:302
vclplug_winlo.dll ! ImplHandleMouseMsg + 0x222 - salframe.cxx:3177
vclplug_winlo.dll ! SalFrameWndProc + 0x1358 - salframe.cxx:5541
vclplug_winlo.dll ! SalFrameWndProcW + 0x5c - salframe.cxx:5894
user32.dll ! DispatchMessageW + 0xf - [unknown source file]
vclplug_winlo.dll ! ImplSalDispatchMessage + 0x30 - salinst.cxx:425
vclplug_winlo.dll ! ImplSalYield + 0x173 - salinst.cxx:493
vclplug_winlo.dll ! WinSalInstance::DoYield + 0x8f - salinst.cxx:527
mergedlo.dll ! Application::Execute + 0x15e - svapp.cxx:434
mergedlo.dll ! desktop::Desktop::Main + 0xf47 - app.cxx:1600
mergedlo.dll ! ImplSVMain + 0x6e - svmain.cxx:201
mergedlo.dll ! soffice_main + 0xfe - sofficemain.cxx:98
soffice.bin ! main + 0x18 - [unknown source file]
soffice.bin ! func@0x40113d + 0x103 - [unknown source file]
kernel32.dll ! BaseThreadInitThunk + 0x23 - [unknown source file]
ntdll.dll ! __RtlUserThreadStart + 0x2e - [unknown source file]
ntdll.dll ! _RtlUserThreadStart + 0x1a - [unknown source file]
Comment 7 QA Administrators 2022-07-07 03:30:41 UTC Comment hidden (obsolete)
Comment 8 Dieter 2022-07-25 21:00:44 UTC
Tested with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Actual result: 5 seconds => RESOLVED WORKSFORME