[fpc-devel] Dnamic packages support
    Daniël Mantione 
    daniel.mantione at freepascal.org
       
    Sat Nov  3 19:39:57 CET 2007
    
    
  
Op Sat, 3 Nov 2007, schreef Michael Van Canneyt:
> 
> > - memory footprint of programs increase significantly since no
> > smartlinking is possible, I created once a pure shared linked lazarus:
> > it depended on 50 MB of shared libs.
> 
> Disk footprint may be higher, but memory footprint is definitely lower.
> I did extensive testing on that.
The memory footprint can only be lower if multiple applications are in 
memory that can use the same packages.
Even then, there will only be savings if the amount of code that can be 
smartlinked is small.
Example: Let's say an LCL package is 10MB. 2 applications are 2MB when 
smartlinked, and 100kb when linked against the package. (The heap can be 
ignored in this discussion because its memory usage does not differ 
depending on packages being used.)
Memory use with packages:     10MB+2*100KB = 10,2MB.
Memory use with smartlinking: 2*2MB        =  4MB
Daniël
    
    
More information about the fpc-devel
mailing list