Author: Hakan Ardo <[email protected]>
Branch:
Changeset: r50521:085083392791
Date: 2011-12-14 21:53 +0100
http://bitbucket.org/pypy/pypy/changeset/085083392791/
Log: inline descr_get_shape to prevent a residual call on two dimensional
array accesses
diff --git a/pypy/module/micronumpy/interp_numarray.py
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -581,6 +581,7 @@
def descr_get_dtype(self, space):
return space.wrap(self.find_dtype())
+ @jit.unroll_safe
def descr_get_shape(self, space):
return space.newtuple([space.wrap(i) for i in self.shape])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit