[pypy-svn] r17625 - pypy/dist/pypy/translator/backendopt

tismer at codespeak.net tismer at codespeak.net
Sat Sep 17 20:35:59 CEST 2005


Author: tismer
Date: Sat Sep 17 20:35:58 2005
New Revision: 17625

Modified:
   pypy/dist/pypy/translator/backendopt/inline.py
Log:
changed the threshold of inlining to 32.4 to prevend us from inlining
too much of rlist. Best result, so far.
But I'm not sure wether we should try the old threshold again
after reverting the _ll_list_resize change?

executable           abs.richards   abs.pystone   rel.richards   rel.pystone
pypy-c-17439           36481 ms         638.546      42.5           58.0
pypy-c-17512           47007 ms         656.899      54.8           56.4
pypy-c-17516           39326 ms         650.730      45.8           56.9
pypy-c-17545-intern    35411 ms         749.698      41.3           49.4
pypy-c-17572           37463 ms         734.966      43.7           50.4
pypy-c-17600           27159 ms         903.215      31.7           41.0
pypy-c-17600_ll_list   27639 ms         807.148      32.2           45.9
pypy-c-17623-32_4      26278 ms         965.521      30.6           38.4
python 2.3.3             858 ms       37033.600       1.0            1.0

Modified: pypy/dist/pypy/translator/backendopt/inline.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/inline.py	(original)
+++ pypy/dist/pypy/translator/backendopt/inline.py	Sat Sep 17 20:35:58 2005
@@ -10,7 +10,8 @@
 from pypy.rpython import rmodel
 from pypy.translator.backendopt import sparsemat
 
-BASE_INLINE_THRESHOLD = 38.8    # just enough to inline add__Int_Int()
+BASE_INLINE_THRESHOLD = 32.4    # just enough to inline add__Int_Int()
+# and just small enough to prevend inlining of some rlist functions.
 
 class CannotInline(Exception):
     pass



More information about the Pypy-commit mailing list