forwarding to the list , sorry ...

---------- Forwarded message ----------
From: Olemis Lang <[email protected]>
Date: Sun, 6 Oct 2013 17:09:38 -0500
Subject: Re: [Python-Dev] Reduce memory footprint of Python
To: Benjamin Peterson <[email protected]>

On 10/6/13, Benjamin Peterson <[email protected]> wrote:
> 2013/10/6 Victor Stinner <[email protected]>:
>> 2013/10/6 Benjamin Peterson <[email protected]>:
>>> 2013/10/6 Victor Stinner <[email protected]>:
>>>> Hi,
>>>>
>>>> Slowly, I'm trying to see if it would be possible to reduce the memory
>>>> footprint of Python using the tracemalloc module.
>>>>
>>>> First, I noticed that linecache can allocate more than 2 MB. What do
>>>> you think of adding a registry of "clear cache" functions? For
>>>> exemple, re.purge() and linecache.clearcache(). gc.collect() clears
>>>> free lists. I don't know if gc.collect() should be related to this new
>>>> registy (clear all caches) or not.
>>>
>>> What is the usecase for minimizing the memory usage of Python in the
>>> middle of a program?
>>
>> If you know that your application uses a lot of memory, it is
>> interesting to sometimes (when the application is idle) try to release
>> some bytes to not use all the system memory. On embedded devices,
>> memory is expensive and very limited. Each byte is important :-)
>
> How many embedded systems are running Python?
>

<ot>
I know of a few of them, and it seems they will be more popular with
the growing interest for devices like Raspberry Pi and technologies
like 3D printing e.g. http://raspberry-python.blogspot.com/
</ot>

-- 
Regards,

Olemis - @olemislc

Apacheā„¢ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Popularidad de Python, septiembre 2013 -
http://goo.gl/fb/tr0XB
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to