Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: 
Changeset: r47292:6dc305ab7c65
Date: 2011-09-16 13:45 +0200
http://bitbucket.org/pypy/pypy/changeset/6dc305ab7c65/

Log:    one of the more obscure commits: change the thresholds slightly to
        be prime numbers. the reason for this is that if there are nested
        loops that have combined iteration times of exactly the threshold
        you get bad traces. probably not important in practice, but seemed
        fun to do.

diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -291,8 +291,8 @@
 class JitHintError(Exception):
     """Inconsistency in the JIT hints."""
 
-PARAMETERS = {'threshold': 1032, # just above 1024
-              'function_threshold': 1617, # slightly more than one above
+PARAMETERS = {'threshold': 1039, # just above 1024, prime
+              'function_threshold': 1619, # slightly more than one above, also 
prime
               'trace_eagerness': 200,
               'trace_limit': 6000,
               'inlining': 1,
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to