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
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 func
4=motorola@python.org
[mailto:python-list-bounces+qbx634=motorola@python.org] On Behalf Of
Steve Holden
Sent: Thursday, January 07, 2010 1:20 PM
To: python-list@python.org
Subject: Re: How to reduce the memory size of python
Mishra Gopal-QBX634 wrote:
> Hi,
>
> When i write following pyhon
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 pytho
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.
Any