summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-12-02 12:39:26 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2020-12-02 14:41:59 -0600
commit755ea9a83e410c226c24b95cb892da3f64248d42 (patch)
treec69d51ad38cabef2c3bfe3ded013ce808d1536b6 /numpy/lib/utils.py
parent33dc7bea24f1ab6c47047b49521e732caeb485d5 (diff)
downloadnumpy-755ea9a83e410c226c24b95cb892da3f64248d42.tar.gz
ENH: Micro-optimize where=True path for mean, var, any, and all
This removes a 20%-30% overhead, and thus the largest chunk of slowdown incurred by adding the `where` argument. Most other places have fast-paths for `where=True`, this one also should have it. The additional argument does slow down the function versions a bit more than this, but that is to be expected probably (it has to build a new argument dict, at some point we might want to move this to C, but that seems worth much more with FASTCALL logic).
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions