Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to