Bug 133685 - Poor performance sending a printjob on Windows caused by EnumFontFamiliesExW StretchDIBits removeTransparencies
Summary: Poor performance sending a printjob on Windows caused by EnumFontFamiliesExW ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
: 116399 (view as bug list)
Depends on:
Blocks: Print
  Show dependency treegraph
 
Reported: 2020-06-04 21:18 UTC by Telesto
Modified: 2022-09-16 15:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
BT with symbols VTune Profiler based on x39 build (1.91 KB, text/plain)
2020-07-08 13:05 UTC, Telesto
Details
BT with symbols VTune Profiler based on x39 build part2 (1.97 KB, text/plain)
2020-07-08 13:06 UTC, Telesto
Details
BT with symbols VTune Profiler based on x39 build (2.96 KB, text/plain)
2020-07-08 13:11 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-06-04 21:18:57 UTC
Description:
Poor performance sending a printjob on Windows

Steps to Reproduce:
1. Open attachment 160498 [details]
2. Print -> PRINT to a PDF -> wait 3 minutes



Actual Results:
3 minutes

Expected Results:
30-40 seconds


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 191288d6a7fb52b31038a21c4e71ee57ffa3bacd
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

and in
3.3.0
Comment 1 Telesto 2020-06-04 21:20:26 UTC
Not a duplicate of bug 116399.. this is slow all the way back to 3.3.0
Comment 2 m_a_riosv 2020-06-05 20:29:30 UTC
For me:
Microsoft PDF: 5m30s
Pdf creator: 2m55s
Export to pdf: 15s

Version: 6.4.4.2 (x64)
Compilation: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
Subprocs. CPU: 4; SO: Windows 10.0 Build 19608; Repres. IU: GL; VCL: win; 
Configuration regional: es-ES (es_ES); Idioma de IU: es-ES Calc: threaded
Comment 3 Telesto 2020-06-05 20:47:08 UTC
I forgot.. exporting to PDF and sending print job from PDF reader to PDF printer: 30 seconds
Comment 4 Telesto 2020-07-08 12:50:05 UTC
*** Bug 116399 has been marked as a duplicate of this bug. ***
Comment 5 Telesto 2020-07-08 13:05:24 UTC
Created attachment 162801 [details]
BT with symbols VTune Profiler based on x39 build
Comment 6 Telesto 2020-07-08 13:06:14 UTC
Created attachment 162802 [details]
BT with symbols VTune Profiler based on x39 build part2
Comment 7 Telesto 2020-07-08 13:11:19 UTC
Created attachment 162803 [details]
BT with symbols VTune Profiler based on x39 build
Comment 8 Telesto 2020-07-08 14:41:52 UTC
Let's note:
as essential feature for an text editor/spreadsheet/presentation tool
That people also use to printer large documents. Especially in large organisations 
That it can take up to 5 times longer compared to printing the same file from PDF
That Windows being used a lot

-> Increasing priority..

It should be possible doing this faster, based on the PDFexport. Can we not generate some sort of PDF file and send that to the printer.


For the record.. traces are only sample where time is spend.. It's on a 30/30/30 basis.
Comment 9 Telesto 2020-09-10 21:43:57 UTC
@Noel
Not sure if you'r able to do the perf magic also outside the Linux environment. I hope so :-) Printing - sending the printjob - on Windows is simply slow.
Comment 10 QA Administrators 2022-09-11 03:42:35 UTC Comment hidden (obsolete)
Comment 11 Roman Kuznetsov 2022-09-16 15:53:06 UTC
Around 4 minutes in

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: bff60eadeac348024849d710690435ee9580831b
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded