summaryrefslogtreecommitdiff
path: root/numpy/doc/misc.py
diff options
context:
space:
mode:
authorSimon Conseil <contact@saimon.org>2015-11-27 23:12:32 +0100
committerSimon Conseil <contact@saimon.org>2015-11-28 00:11:49 +0100
commit593345a75fdd3de103e3e50969fbca2ed752f08d (patch)
tree884a858f6b16967634556ca8e298349d28f801f7 /numpy/doc/misc.py
parent53e658f80da6a50d371c74f49d3bb81fabf20d1b (diff)
downloadnumpy-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/doc/misc.py')
0 files changed, 0 insertions, 0 deletions