[Numpy-discussion] allocated memory cache for numpy

Sturla Molden sturla.molden at gmail.com
Mon Feb 17 16:27:31 EST 2014

Nathaniel Smith <njs at pobox.com> wrote:
> Also, I'd be pretty wary of caching large chunks of unused memory. People
> already have a lot of trouble understanding their program's memory usage,
> and getting rid of 'greedy free' will make this even worse.

A cache would only be needed when there is a lot of computing going on, so
one could set an "early expire date" on chached chunks. Anything older than
a second or two could be returned. A cache would thus require a garbage
collector thread.


More information about the NumPy-Discussion mailing list