summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-01-11 00:18:23 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-04-01 23:27:38 +0200
commit3ff41a68be4785298a7df9cd1d919342ec889b93 (patch)
tree3d9cf3de16bc2cd708da199ddc50165705d02008 /numpy/lib/arraysetops.py
parentde73f9ffffb746489b56b3bbcef3195e0bc825f3 (diff)
downloadnumpy-3ff41a68be4785298a7df9cd1d919342ec889b93.tar.gz
ENH: avoid searching for __numpy_ufunc__ if its a basic python type
Checking for the attribute is a very large bottlenecks for reductions. dtype, out, keepdims will often be basic python types so the check can be skipped. Also add a couple missing types to helper function _is_basic_python_type and move it into a header so it can be used in umath.
Diffstat (limited to 'numpy/lib/arraysetops.py')
0 files changed, 0 insertions, 0 deletions