Making Python Fast - PyPy and Unladen Swallow
Making Python Fast - PyPy and Unladen Swallow
Swallow - Making
Python Fast
Very dynamic.
Frame introspection.
Object model.
Globals/Builtins
Friday, July 30, 2010
Frame Introspection
import sys
def f():
a = 3
g()
def g():
try:
raise Exception
except Exception, e:
frame = sys.exc_info()[2].tb_frame
print frame.f_back.f_locals["a"]
f()
o = A(a=1, b=2)
print o.a
for i in f([3]):
print i
len = lambda o: 3
“Primitive” bytecode VM
Value boxing
Reference counting
Unladen Swallow
PyPy
Python in Python
JIT Generator
Tracing JIT
Restricted Python