On Wed, Jan 30, 2019 at 06:09:47PM +0800, Dmitry Timoshkov wrote:
Huw Davies huw@codeweavers.com wrote:
On Tue, Jan 29, 2019 at 04:32:19PM +0800, Dmitry Timoshkov wrote:
Nikolay Sivov nsivov@codeweavers.com wrote:
Why would it better to delay-load?
Because loading ole32 is very expensive.
What's expensive about it?
Mostly dependencies and initialization.
Just to set the record straight, both ole32 and rpcrt4 (which ole32 loads) essentially have no initialization code. So the overhead involved is just that of the loader itself.
Starting up services and performing IPC takes most of the initialization time I'd guess, not mentioning that is not quite fair IMO.
Sure, calling CoInitialize[Ex]() takes time, but you were talking about loading the dll (wrt to delay loading it).
Huw.