diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-03-25 19:09:26 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-03-25 19:12:03 +0100 |
commit | aa36680aac25fb5560f28b6ed94d4e4f654d1d81 (patch) | |
tree | d11eeca941cbf63219960ecc7700f1ffb674975d /numpy/testing/utils.py | |
parent | 2f0494c2601b0dd1bdde405b9937ebc06427f1e2 (diff) | |
download | numpy-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