diff options
author | Simon Conseil <contact@saimon.org> | 2015-11-27 23:12:32 +0100 |
---|---|---|
committer | Simon Conseil <contact@saimon.org> | 2015-11-28 00:11:49 +0100 |
commit | 593345a75fdd3de103e3e50969fbca2ed752f08d (patch) | |
tree | 884a858f6b16967634556ca8e298349d28f801f7 /numpy/core/fromnumeric.py | |
parent | 53e658f80da6a50d371c74f49d3bb81fabf20d1b (diff) | |
download | numpy-593345a75fdd3de103e3e50969fbca2ed752f08d.tar.gz |
ENH: Avoid memory peak and useless computations when printing a MaskedArray.
Ref #3544.
When printing a `MaskedArray`, the whole array is converted to the object dtype,
whereas only a few values are printed to screen. So the approach here is to cut
the array and keep only a subset that it used for the string conversion. This
way the output should not change.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions