~/talk

Myths and fairy tales around Python performance

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python]
slides:none on file

Argues that common fixes—static typing, JIT, or compiling to LLVM—help some hotspots but don’t solve core limits: Python’s dynamic semantics, pointer-chasing object layout and cache misses, and cross-language call overhead. Uses PyPy and C extensions as concrete examples, cites an 80/20/Amdahl tradeoff, shows real failures (a dict key turning Unicode caused a 2× slowdown; defining a class inside a function forced constant deoptimizations until moved out), tests Cython/Syon results, notes GIL removal is experimental, and presents SPy (Static Python) as a research path.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:30The myths of Python speed
  3. 5:59Optimization limits
  4. 9:14Interpreters vs. compilers
  5. 13:24The challenge of static types
  6. 17:21JIT compilers and trade-offs
  7. 22:28The optimization chase
  8. 25:02Dynamicity as a double-edged sword
  9. 28:33Code patterns and pitfalls
  10. 34:23Abstraction overhead
  11. 37:22Memory management constraints
  12. 40:41Future path for performance
  13. 44:07Q&A session
~/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.