summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_packbits.py
diff options
context:
space:
mode:
authorSimon Conseil <contact@saimon.org>2015-11-26 15:04:37 +0100
committerSimon Conseil <contact@saimon.org>2015-11-26 15:04:37 +0100
commit531f2ad34d006585281b9416fa30992dd37cf2af (patch)
tree25a00196d33d06455ae4ff99166ca579aaf76ae5 /numpy/lib/tests/test_packbits.py
parent53e658f80da6a50d371c74f49d3bb81fabf20d1b (diff)
downloadnumpy-531f2ad34d006585281b9416fa30992dd37cf2af.tar.gz
ENH: Avoid memory peak when creating a MaskedArray with mask=True/False (#6732).
When the `mask` parameter is set to True or False, create directly a `ndarray` of boolean instead of going inside `np.resize` which was causing of memory peak of ~15 times the size of the mask.
Diffstat (limited to 'numpy/lib/tests/test_packbits.py')
0 files changed, 0 insertions, 0 deletions