[Numpy-discussion] allocated memory cache for numpy

Sturla Molden sturla.molden at gmail.com
Mon Feb 17 15:16:45 EST 2014

Julian Taylor <jtaylor.debian at googlemail.com> wrote:

> When an array is created it tries to get its memory from the cache and
> when its deallocated it returns it to the cache.

Good idea, however there is already a C function that does this. It uses a
heap to keep the cached memory blocks sorted according to size. You know it
as malloc — and is why we call this allocation from the heap. Which by the
way is what NumPy already does.  ;-)


More information about the NumPy-Discussion mailing list