[pypy-commit] pypy stm-thread: Change the default checkinterval to a value which ends up
arigo
noreply at buildbot.pypy.org
Wed Jun 6 20:15:50 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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)
#
More information about the pypy-commit
mailing list