[pypy-svn] r72495 - pypy/trunk/pypy/config
arigo at codespeak.net
arigo at codespeak.net
Sun Mar 21 16:57:41 CET 2010
Author: arigo
Date: Sun Mar 21 16:57:39 2010
New Revision: 72495
Modified:
pypy/trunk/pypy/config/translationoption.py
Log:
Set (again) gcremovetypeptr as default for 64-bit translations.
It gives a pypy-c that is faster (+10%), consumes less memory
of course, and is smaller.
Modified: pypy/trunk/pypy/config/translationoption.py
==============================================================================
--- pypy/trunk/pypy/config/translationoption.py (original)
+++ pypy/trunk/pypy/config/translationoption.py Sun Mar 21 16:57:39 2010
@@ -1,5 +1,5 @@
import autopath
-import py, os
+import py, os, sys
from pypy.config.config import OptionDescription, BoolOption, IntOption, ArbitraryOption, FloatOption
from pypy.config.config import ChoiceOption, StrOption, to_optparse, Config
from pypy.config.config import ConfigError
@@ -11,6 +11,8 @@
DEFL_CLEVER_MALLOC_REMOVAL_INLINE_THRESHOLD = 32.4
DEFL_LOW_INLINE_THRESHOLD = DEFL_INLINE_THRESHOLD / 2.0
+IS_64_BITS = sys.maxint > 2147483647
+
PLATFORMS = [
'maemo',
'host',
@@ -73,7 +75,7 @@
("translation.gcremovetypeptr", False)],
}),
BoolOption("gcremovetypeptr", "Remove the typeptr from every object",
- default=False, cmdline="--gcremovetypeptr"),
+ default=IS_64_BITS, cmdline="--gcremovetypeptr"),
ChoiceOption("gcrootfinder",
"Strategy for finding GC Roots (framework GCs only)",
["n/a", "shadowstack", "asmgcc"],
More information about the Pypy-commit
mailing list