[pypy-commit] pypy default: unroll this loop

alex_gaynor noreply at buildbot.pypy.org
Sun Jun 3 16:38:04 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r55289:5cc6fbe1c322
Date: 2012-06-03 09:37 -0500
http://bitbucket.org/pypy/pypy/changeset/5cc6fbe1c322/

Log:	unroll this loop

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
@@ -690,6 +690,7 @@
         return self.getitem(offset).convert_to(longdtype).item(
             space)
 
+    @jit.unroll_safe
     def descr_item(self, space, w_arg=None):
         if space.is_w(w_arg, space.w_None):
             if isinstance(self, Scalar):


More information about the pypy-commit mailing list