[pypy-commit] pypy stm-gc: XXX temporarily disable the method cache, again. Even if it is

arigo noreply at buildbot.pypy.org
Wed Feb 22 00:00:42 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52747:a8e0e462beb9
Date: 2012-02-22 00:00 +0100
http://bitbucket.org/pypy/pypy/changeset/a8e0e462beb9/

Log:	XXX temporarily disable the method cache, again. Even if it is
	thread-local, depending (randomly) on whether there is an update to
	the cache or not, we need to copy a lot of data or not. This is
	what makes the performance of even single-thread richards.py vary a
	lot (simple or double speed).

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -363,7 +363,8 @@
     if level in ['2', '3', 'jit']:
         config.objspace.opcodes.suggest(CALL_METHOD=True)
         config.objspace.std.suggest(withrangelist=True)
-        config.objspace.std.suggest(withmethodcache=True)
+        if not config.translation.stm:   # XXX temporary
+            config.objspace.std.suggest(withmethodcache=True)
         config.objspace.std.suggest(withprebuiltchar=True)
         config.objspace.std.suggest(builtinshortcut=True)
         config.objspace.std.suggest(optimized_list_getitem=True)


More information about the pypy-commit mailing list