[pypy-commit] pypy default: unroll this too

bdkearns noreply at buildbot.pypy.org
Mon Mar 25 12:08:18 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r62738:23fcef6e69f8
Date: 2013-03-25 07:00 -0400
http://bitbucket.org/pypy/pypy/changeset/23fcef6e69f8/

Log:	unroll this too

diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -398,6 +398,8 @@
             setdata[self.unwrap(w_item)] = None
         return self.erase(setdata)
 
+    @jit.look_inside_iff(lambda self, items:
+                         jit.loop_unrolling_heuristic(items, len(items)))
     def get_storage_from_unwrapped_list(self, items):
         setdata = self.get_empty_dict()
         for item in items:


More information about the pypy-commit mailing list