[pypy-commit] pypy default: another attempt at improving performance

fijal noreply at buildbot.pypy.org
Sun Nov 30 17:57:09 CET 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
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


More information about the pypy-commit mailing list