diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-01-14 19:25:41 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-01-14 19:32:54 +0100 |
commit | 48558df89911b5211ae8d58e1d5e937bb1b57c33 (patch) | |
tree | 2ee87a6d598614c722a53301f98705e2f5c3d080 /numpy/polynomial/polyutils.py | |
parent | 0b85f91364729286fe4e6f5343c31015d8248012 (diff) | |
download | numpy-48558df89911b5211ae8d58e1d5e937bb1b57c33.tar.gz |
ENH: avoid more thread save/restores for small iteration counts
Releasing the GIL is not worthwhile for small loop iteration counts.
This was previously only done for non-reduction ufuncs.
Do this now also for reductions and assignments.
Improves performance of small reductions by about 10% as they avoid two
save and restores.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions