Re: Lot of classes
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Thu, 15 Sep 2005 00:29:19 +0200
>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.
How many are "a lot"? Tens, hundreds, thousands?
I wouldn't worry about it unless you have actual profiling and memory
usage data that indicates it's a problem.
Now, if you want to reduce the memory footprint of your app, perhaps
you should consider a design where you don't have to load the plugin
assemblies until they are actually needed. Or will the user actually
use all "utilities"?
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Follow-Ups:
- Re: Lot of classes
- From: ernesto bascón pantoja
- Re: Lot of classes
- References:
- Lot of classes
- From: ernesto bascón pantoja
- Lot of classes
- Prev by Date: Re: Lot of classes
- Next by Date: Re: Lot of classes
- Previous by thread: Re: Lot of classes
- Next by thread: Re: Lot of classes
- Index(es):
Relevant Pages
|