How to reduce the memory size of python
steve at holdenweb.com
Thu Jan 7 12:48:12 CET 2010
Mishra Gopal-QBX634 wrote:
> I use twisted framework too to handle the xmlrpc request. It takes
> around 3-4MB of memory while importing itself.
> Is there any python coding standard I should follow to save the memory.
> Like import logging takes 1MB of memory.
> We only use on function getLogger by 'from logging import getLogger'
> But it still take the same 1 MB memory.
> Instead of loading whole logging module only load the getLogger
> I there any way to save the memory with taking care of small things in
No. You are seeing the size of the interpreter.
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
More information about the Python-list