E
ernesto bascón pantoja
Hi everybody:
I am writing an application that will handle plugins, every plugin will have
a lot of "utilities" that the user can select from and execute.
The first time my application is up, all the plugins are loaded and all its
utilities are loaded in order to get registered into my application.
I am implementing every plugin as an assembly and every "utility" as a
subclass derived from a "Utility" class.
Talking with another developer, he suggested me that I should not create a
subclass for every Utility that I have, because every class has a big
footprint and as my application has a lot of utilities, my overall resource
usage will be dramatically high. Instead of do this, I could implement every
basic utility as subclasses from Utility and create instances of my basic
utilities, passing them delegates that will perform the required job (à la C
programming).
I suppose that the footprint for every class is a little greater than the
lot of methods I will have, but I am not happy with the delegation scheme
(and my class containing all the delegate implementations will be huge).
Any hint, tip or trick will be superhelpful. Saludos
ernesto
I am writing an application that will handle plugins, every plugin will have
a lot of "utilities" that the user can select from and execute.
The first time my application is up, all the plugins are loaded and all its
utilities are loaded in order to get registered into my application.
I am implementing every plugin as an assembly and every "utility" as a
subclass derived from a "Utility" class.
Talking with another developer, he suggested me that I should not create a
subclass for every Utility that I have, because every class has a big
footprint and as my application has a lot of utilities, my overall resource
usage will be dramatically high. Instead of do this, I could implement every
basic utility as subclasses from Utility and create instances of my basic
utilities, passing them delegates that will perform the required job (à la C
programming).
I suppose that the footprint for every class is a little greater than the
lot of methods I will have, but I am not happy with the delegation scheme
(and my class containing all the delegate implementations will be huge).
Any hint, tip or trick will be superhelpful. Saludos
ernesto