[pypy-svn] extradoc extradoc: work work
alex_gaynor
commits-noreply at bitbucket.org
Thu Mar 10 15:24:36 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: extradoc
Changeset: r3373:b05dbf74e36f
Date: 2011-03-10 09:24 -0500
http://bitbucket.org/pypy/extradoc/changeset/b05dbf74e36f/
Log: work work
diff --git a/talk/pycon2011/whyslow/talk.rst b/talk/pycon2011/whyslow/talk.rst
--- a/talk/pycon2011/whyslow/talk.rst
+++ b/talk/pycon2011/whyslow/talk.rst
@@ -193,15 +193,30 @@
* call the bound method
+Version tags and inlining
+-------------------------
+
+* For every type give it a version, any time it changes, increment the version (e.g. modifying MRO or assigning attribute)
+
+* CPython does the trick too
+
+* But it's more powerful with a JIT
+
+* When looking up a method, check the version tag and create a guard
+
+* Then inline the method and eliminate frame
+
Linking it all together
-----------------------
-* array example
+* ``translate.py``: a large Python application (200 KLOC)
+
+* 1 hour on CPython, 25 minutes on PyPy
Things we did not talk about
----------------------------
-* regular expressions
+* regular expressions (JIT'd)
* generators
@@ -216,9 +231,15 @@
* numpy
+* Python 3
+
Thank you
-----------
* http://pypy.org
* http://morepypy.blogspot.com/
+
+* http://speed.pypy.org/
+
+* Questions?
More information about the Pypy-commit
mailing list