~/talk

Python and PyPy performance (not) for dummies

Talkat EuroPython 2015 · 2015-07-20..07-26· [python]
slides:none on file

Shows concrete claims and tools: 7x average speedup on selected real-world benchmarks, a JIT that specializes hot loops with JIT guards and bailouts to reach near-C speed in the best cases, and measurable warmup costs before that. Demonstrates a built vmprof statistical profiler (Linux x86_64, ~300 Hz sampling) and a web UI, with profiling overhead around ~5% profiling overhead. Notes practical limits: CPython C‑API extensions run slowly on PyPy; prefer CFFI; warmup and specialization heuristics determine actual gains.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Premature optimization
  3. 1:20What is performance like
  4. 3:40Python performance
  5. 11:10PiePy performance
  6. 12:10Profiler
  7. 14:10Optimization
  8. 15:45Current releases
  9. 16:15Speed
  10. 17:42How it works
  11. 21:34Specialization
  12. 22:47Tradeoff
  13. 23:20Friendly to PyPy
  14. 24:43General advice
  15. 27:02Compatibility layer
  16. 28:19Optimize code
  17. 36:21Windows support
  18. 37:51FreeBusy
  19. 39:11Can I just replace Python with PyPy
  20. 40:11Garbage collector
  21. 42:51PyPy extension
  22. 44:08Time spent in PyPy
  23. 45:43Time spent in user code
  24. 46:54Python overhead
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.