[pypy-svn] r56921 - in pypy/branch/opt-option/pypy: doc/config translator/goal

arigo at codespeak.net arigo at codespeak.net
Sat Aug 2 14:38:16 CEST 2008


Author: arigo
Date: Sat Aug  2 14:38:16 2008
New Revision: 56921

Added:
   pypy/branch/opt-option/pypy/doc/config/objspace.std.multimethods.txt   (contents, props changed)
Modified:
   pypy/branch/opt-option/pypy/translator/goal/translate.py
Log:
* Add -O# as synonym for --opt=#.
* Document new multimethod option.


Added: pypy/branch/opt-option/pypy/doc/config/objspace.std.multimethods.txt
==============================================================================
--- (empty file)
+++ pypy/branch/opt-option/pypy/doc/config/objspace.std.multimethods.txt	Sat Aug  2 14:38:16 2008
@@ -0,0 +1,8 @@
+Choose the multimethod implementation.
+
+* ``doubledispatch`` turns
+  a multimethod call into a sequence of normal method calls.
+
+* ``mrd`` uses a technique known as Multiple Row Displacement
+  which precomputes a few compact tables of numbers and
+  function pointers.

Modified: pypy/branch/opt-option/pypy/translator/goal/translate.py
==============================================================================
--- pypy/branch/opt-option/pypy/translator/goal/translate.py	(original)
+++ pypy/branch/opt-option/pypy/translator/goal/translate.py	Sat Aug  2 14:38:16 2008
@@ -50,7 +50,7 @@
               cmdline=None),
     ChoiceOption("opt",
                  "optimization level", OPT_LEVELS, default=DEFAULT_OPT_LEVEL,
-                 cmdline="--opt"),
+                 cmdline="--opt -O"),
     BoolOption("profile",
                "cProfile (to debug the speed of the translation process)",
                default=False,



More information about the Pypy-commit mailing list