summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-03-25 19:09:26 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-03-25 19:12:03 +0100
commitaa36680aac25fb5560f28b6ed94d4e4f654d1d81 (patch)
treed11eeca941cbf63219960ecc7700f1ffb674975d /numpy/testing/utils.py
parent2f0494c2601b0dd1bdde405b9937ebc06427f1e2 (diff)
downloadnumpy-aa36680aac25fb5560f28b6ed94d4e4f654d1d81.tar.gz
ENH: optimize count_boolean_trues further via unrolling
redoing the computation if the booleans do not not contain 0 or 1 allows sharing registers for the addition and or operations so we can more aggressively unroll the loop to save 3 multiplies and shifts. Also it allows better pipelining of integer operations. Improvements range from 10%-50% on a range of amd64 cpus.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions