Reducing Python's memory footprint?

Brent Fulgham brent.fulgham at xpsystems.com
Wed Feb 23 20:28:57 CET 2000


> I think that's the problem. How do I get it to share the 
> executable code between the processes? As a test, I 
> loaded five copies of my application, and kept track of 
> how much memory was being used (resident size). It looks
> like this:
> 
> 5,988k for the first
> 11, 976k for two
> 17,964k for three
> 23,952k for four
> 29,940k for five
> 
> There doesn't seem to be *any* sharing of resources in this...
> 
> --Joel

Are you statically linking the interpreter into your
executable? (i.e., you use libpython1.5a in Unix?)

If the interpreter is not linked to your executable
as a shared resource, it will be loaded with each
invocation.

-Brent




More information about the Python-list mailing list