[pypy-svn] r58636 - pypy/dist/pypy/config

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Oct 6 14:21:18 CEST 2008


Author: xoraxax
Date: Mon Oct  6 14:21:17 2008
New Revision: 58636

Modified:
   pypy/dist/pypy/config/translationoption.py
Log:
Enable listcomp optimization by default.

Modified: pypy/dist/pypy/config/translationoption.py
==============================================================================
--- pypy/dist/pypy/config/translationoption.py	(original)
+++ pypy/dist/pypy/config/translationoption.py	Mon Oct  6 14:21:17 2008
@@ -146,7 +146,7 @@
                "When true, look for and special-case the sequence of "
                "operations that results from a list comprehension and "
                "attempt to pre-allocate the list",
-               default=False,
+               default=True,
                cmdline='--listcompr'),
     IntOption("withsmallfuncsets",
               "Represent groups of less funtions than this as indices into an array",
@@ -327,6 +327,7 @@
     for word in words:
         if word == 'nobackendopt':
             config.translation.backendopt.suggest(none=True)
+            config.translation.suggest(list_comprehension_operations=False)
         elif word == 'lowinline':
             config.translation.backendopt.suggest(inline_threshold=
                                                 DEFL_LOW_INLINE_THRESHOLD)
@@ -334,7 +335,6 @@
             config.translation.backendopt.suggest(remove_asserts=True)
         elif word == 'extraopts':
             config.translation.suggest(withsmallfuncsets=5)
-            config.translation.suggest(list_comprehension_operations=True)
         else:
             raise ValueError(word)
 



More information about the Pypy-commit mailing list