Qt5: slow loading of printer under ms windows
- Lazarus/FPC Version: Lazarus 2.3.0 (rev main-2_3-646-g95b4cf90) FPC 3.2.2 x86_64-linux-qt5
- Operating System: MS Windows 10
- CPU / Bitness: 32 bit
Starting Qt5 application under win32, with printers4lazarus package included needs a lot of time.
Startup measured in my virtual machine: win32: 650 msec qt4: 760 msec qt5: 18800 msec
What did you expect
Start Qt5 app in reasonable time.
Steps to reproduce
Use printers4lazarus, OSPrinters create default Printer object and in constructor calls CachePapers() which is problematic. Timing of Qt4 and win32 cannot be achieved because of https://bugreports.qt.io/browse/QTBUG-49560, but can be optimized to start in reasonable time.