Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r74764:291081ced5e0
Date: 2014-11-30 18:57 +0200
http://bitbucket.org/pypy/pypy/changeset/291081ced5e0/

Log:    another attempt at improving performance

diff --git a/pypy/module/micronumpy/iterators.py 
b/pypy/module/micronumpy/iterators.py
--- a/pypy/module/micronumpy/iterators.py
+++ b/pypy/module/micronumpy/iterators.py
@@ -154,7 +154,7 @@
         index = state.index
         if self.track_index:
             index += 1
-        indices = state.indices
+        indices = [state.indices[i] for i in range(len(state.indices))]
         offset = state.offset
         if self.contiguous:
             offset += self.array.dtype.elsize
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to