Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r74774:bf9b7211befc
Date: 2014-12-01 16:11 +0200
http://bitbucket.org/pypy/pypy/changeset/bf9b7211befc/

Log:    try some unrolling strategy

diff --git a/rpython/rtyper/rlist.py b/rpython/rtyper/rlist.py
--- a/rpython/rtyper/rlist.py
+++ b/rpython/rtyper/rlist.py
@@ -983,6 +983,14 @@
 #
 #  Comparison.
 
+def listeq_unroll_case(l1, l2, eqfn):
+    if jit.isvirtual(l1) and len(l1) < 10:
+        return True
+    if jit.isvirtual(l2) and len(l2) < 10:
+        return True
+    return False
+
[email protected]_iff(listeq_unroll_case)
 def ll_listeq(l1, l2, eqfn):
     if not l1 and not l2:
         return True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to