[pypy-svn] r70797 - pypy/extradoc/planning

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Jan 24 18:13:38 CET 2010


Author: cfbolz
Date: Sun Jan 24 18:13:37 2010
New Revision: 70797

Modified:
   pypy/extradoc/planning/jit.txt
Log:
looked at some of the benchmarks, here are some findings


Modified: pypy/extradoc/planning/jit.txt
==============================================================================
--- pypy/extradoc/planning/jit.txt	(original)
+++ pypy/extradoc/planning/jit.txt	Sun Jan 24 18:13:37 2010
@@ -29,8 +29,6 @@
 
 - goal: on average <=5 guards per original bytecode
 
-- prevent jitting really general */** calls
-
 - put the class into the structure to get only one promote when using an
   instance
 
@@ -40,6 +38,27 @@
   for hybrid GC (on stringbuilder branch so far).
 
 
+Benchmark Notes
+----------------------------
+
+ - spitfire:
+   - spends most of its time in subclass-of-list.append
+   - does completely horrible hackish things that happen to be fast on CPython
+     (i.e. calling locals() all the time)
+   - see http://paste.pocoo.org/show/169366/ for the python code that spitfire
+     produces for the template used in the benchmark
+
+ - html5lib:
+   - slowness seems to be mostly the fault of PyUnicode_DecodeCharmap in
+     module/_codecs/app_codecs.py. Are such things not jitted?
+   - the tokenizer uses regular expressions and generators, which probably
+     doesn't help
+   - calls str.lower a lot
+
+ - spambayes
+   - uses regular expressions and generators a lot
+
+
 
 JIT-related Release Tasks
 ---------------------------



More information about the Pypy-commit mailing list