Object Refferences And Speed ?
From: Jason Hawryluk (IHATESPAM_at_3gcomm.fr)
Date: 02/19/04
- Next message: EventHelix.com: "Re: UML Reverse Engineering Tools"
- Previous message: Alfredo Novoa: "Re: Relational model versus object model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Feb 2004 13:19:59 +0100
I am doing some refactoring on a VB app *g* this app uses Usercontrols
extensivly, each usercontrol loads about 4 com class objects stored in
different dll's. For example cError,cUtil etc..
These are Declared directly in the usercontrol. i.e.
Dim o_Error as cError
Dim o_Util as cUtil
Etc..
I was wondering is it slower to load them if I make a helper dll I.E.
Dim o_Helper as cHelper
And when i need these classes, load on demand.
o_Helper.o_Error.RaiseError(etc....)
This allows me to Refference the different dll's only in the helper and not
all the Usercontrols. The usercontrol only refferences the helper. I i
change any of the dll's i only need toredeploy the helper dll not all the
Usercontrols.
I hope you get my point if not i will try to elaborate.. i suppose that this
is delegation (correct me if i am wrong.)
Thanks
Jason
- Next message: EventHelix.com: "Re: UML Reverse Engineering Tools"
- Previous message: Alfredo Novoa: "Re: Relational model versus object model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|