RE: How to reduce the memory size of python

2010-01-07 Thread Mishra Gopal-QBX634
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

Re: How to reduce the memory size of python

2010-01-07 Thread Steve Holden
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

Re: How to reduce the memory size of python

2010-01-07 Thread Terry Reedy
On 1/7/2010 3:34 AM, Mishra Gopal-QBX634 wrote: 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. from x import y

How to reduce the memory size of python

2010-01-06 Thread Mishra Gopal-QBX634
Hi, When i write following pyhon program and execute it in linux machine, if __name__=='__main__': while True: pass When i check the VmRSS size, it shows 2956 KB in size. Is there any way to reduce the memory size taken by python. I am working in flash memory devices.

Re: How to reduce the memory size of python

2010-01-06 Thread Steve Holden
Mishra Gopal-QBX634 wrote: Hi, When i write following pyhon program and execute it in linux machine, if __name__=='__main__': while True: pass When i check the VmRSS size, it shows 2956 KB in size. Is there any way to reduce the memory size taken by python. I