object - Memory footprint of my delphi application -
i have large delphi application , trying keep memory footprint low.
in program using component (taco) , component (tburrito) inherits taco. concerning memory usage of classes , not actual instances, scenario uses more memory?
a. using tburrito component everywhere
or
b. using combination of taco , tburrito components?
my 1 thought since tburrito inherits taco, class taco stored in memory , therefore using not increase footprint of memory much.
*note - component names not taco , burrito.
every instance of burrito
occupy @ least memory instance of taco
. subtract taco.instancesize
burrito.instancesize
find out how more.
using burrito
exclusively not save memory; definition of taco
still exist, if have no instances of exact class, because, @ least, burrito.parentclass
still needs refer it.
use smallest component achieves needs, unless burrito
huge compared taco
or have large number of burrito
instances taco
instances instead, you're not going see overall effect on memory usage. come refraining loading entire forms, or loading pieces of file instead of whole thing.
Comments
Post a Comment