diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-08-08 19:09:49 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-08-16 10:19:38 +0200 |
commit | d271d977bdfb977959db1ff26956666f3836b56b (patch) | |
tree | 04a6eadcfc2aaa21b62f66435d6e2108c0ff7634 /numpy/doc/indexing.py | |
parent | afceb18ded0a263196919106ad6e0dba252b204f (diff) | |
download | numpy-d271d977bdfb977959db1ff26956666f3836b56b.tar.gz |
ENH: use PyDataMem_NEW_ZEROED for PyArray_Zeros
PyDataMem_NEW_ZEROED uses calloc which will take advantage of the fact
that most operating systems provide already zero initialized memory
blocks on larger allocations.
Additionally this memory can be sparse (= mapped to a single zero page)
on some systems (e.g. linux) reducing memory usage of applications
using sparse arrays.
Diffstat (limited to 'numpy/doc/indexing.py')
0 files changed, 0 insertions, 0 deletions