Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55446:763ad038f19d
Date: 2012-06-06 20:11 +0200
http://bitbucket.org/pypy/pypy/changeset/763ad038f19d/

Log:    Change the default checkinterval to a value which ends up with a
        much lower overhead.

diff --git a/pypy/module/thread/stm.py b/pypy/module/thread/stm.py
--- a/pypy/module/thread/stm.py
+++ b/pypy/module/thread/stm.py
@@ -16,6 +16,10 @@
         """NOT_RPYTHON: set up a mechanism to send to the C code the value
         set by space.actionflag.setcheckinterval()."""
         #
+        # Set the default checkinterval to 50000, found by exploration to
+        # be a good default value.  XXX do some more in-depth tests
+        space.actionflag.setcheckinterval(50000)
+        #
         def setcheckinterval_callback():
             self.configure_transaction_length(space)
         #
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to