How to reduce the memory size of python
Steve Holden
steve at holdenweb.com
Thu Jan 7 06:48:12 EST 2010
Mishra Gopal-QBX634 wrote:
>
> Hi,
>
> 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
> function.
>
> I there any way to save the memory with taking care of small things in
> code..
>
No. You are seeing the size of the interpreter.
regards
Steve
--
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
mailing list