Author: Armin Rigo <[email protected]>
Branch: jit-counter
Changeset: r67790:ff892c9f2251
Date: 2013-11-01 09:28 +0100
http://bitbucket.org/pypy/pypy/changeset/ff892c9f2251/

Log:    Retry to tweak these numbers

diff --git a/rpython/jit/metainterp/counter.py 
b/rpython/jit/metainterp/counter.py
--- a/rpython/jit/metainterp/counter.py
+++ b/rpython/jit/metainterp/counter.py
@@ -9,7 +9,7 @@
 
 
 class JitCounter:
-    DEFAULT_SIZE = 8192
+    DEFAULT_SIZE = 4096
 
     def __init__(self, size=DEFAULT_SIZE, translator=None):
         "NOT_RPYTHON"
@@ -29,11 +29,11 @@
                 step = 0
             glob = Glob()
             def invoke_after_minor_collection():
-                # After 64 minor collections, we call decay_all_counters().
+                # After 32 minor collections, we call decay_all_counters().
                 # The "--jit decay=N" option measures the amount the
                 # counters are then reduced by.
                 glob.step += 1
-                if glob.step == 64:
+                if glob.step == 32:
                     glob.step = 0
                     self.decay_all_counters()
             if not hasattr(translator, '_jit2gc'):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to