A Not-Called Function Can Cause a 5X Slowdown
https://randomascii.wordpress.com/2018/12/03/a-not-called-function-can-cause-a-5x-slowdown/ [randomascii.wordpress.com]
2018-12-04 20:47
It turns out that it is really easy to get processes that actually allocate some default GDI objects. If your process loads gdi32.dll then you automatically get default GDI objects (DCs, surfaces, regions, brushes, fonts, etc.), whether you need them or not (note that these default GDI objects don’t show up in Task Manager’s count of per-process GDI objects).
Windows seems especially bad at this, but far from the only offender.
source: L