Over time I've been writing a few ActiveX components, but have to notice
that calls to it are, in comparision to system components like the
dictionary one, rather slow.
Although I switched all debugging output off (making those calls disappear
in the outputted executable), I didn't disable the functions which created
the strings fed to the debugging output.
In my case that was a GUID-to-string (outputted) followed by a lookup in the HKCR\CLSID branch in registry for the its name (also outputted). Removing those too made all the difference.
... and all I needed to do to figure the above out was to write some code to intercept all method calls to the Dictionary object (to see what-and-how it
was called and than maybe try to mimick it), which included the same
debugging output - and thus the same slow-down.
Murphy's Law struck again : double-check that what you're sure of can't be
the cause isn't the cause anyway. :-)
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)