[PATCH] imm32: Automatically initialize COM on window activation.

Huw Davies huw at codeweavers.com
Wed Jan 30 04:28:43 CST 2019


On Wed, Jan 30, 2019 at 06:09:47PM +0800, Dmitry Timoshkov wrote:
> Huw Davies <huw at codeweavers.com> wrote:
> 
> > On Tue, Jan 29, 2019 at 04:32:19PM +0800, Dmitry Timoshkov wrote:
> > > Nikolay Sivov <nsivov at 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.



More information about the wine-devel mailing list