BHO Load Time in IE9 - Dll loaded in Cache? RRS feed

  • Question

  • Hi,


    I've developped a BHO/ IE extension working on IE7, IE8 and IE9 for Windows XP, Vista and 7. I began to create the BHO from this excellent article in CodeProject . Since then, I've developped a lot of new functionalities and everything's working great.

    Though, in IE9, the load time is highly random. It's a problem since IE9 shows a window to disable slow extensions if it's over 200ms by default (and I don't want the users to disable mine because of this!).

    I ran some tests and saw that the load time is decreasing every time I launch IE9 with the extension enabled. Most of the time the load time for my BHO is under 100ms, but sometimes (mostly at first install), it's over 200ms and will appear red in IE popup to disable extensions. I did care to create the BHO the best way possible and not to slow user experience. The DLLGetClassObject doesn't contain more code than there initially was in the CodeProject code : I moved everything to take action later, when pages are loaded for exemple.

    Is this happening because IE9 is storing my DLL in cache somewhere to launch it faster after some time? Is there a way to preload the BHO like this, or to enhance the code to decrease load time?


    Thank you!


    Friday, February 4, 2011 11:19 AM


All replies