~/talk

Profiling at the speed of light

Talkat PyCon US 2024 · 2024-05-15..05-23· [python, web-performance]
slides:none on file

Python 3.12 adds one of the world's smallest JIT compilers by injecting tiny assembly trampolines so Linux perf can attribute samples to Python frames; perf plus frame pointers or DWARF augmentation produces combined C+Python flame graphs. A shuffled-vs-sorted example runs ~950ms vs ~600ms (≈55% slower) and perf shows the slow path copies many small chunks in C, not branch mispredictions. Tools used: perf record/report/probe, flamegraphs, hotspot and GDB; the implementation works with caveats about frame pointers, DWARF overhead, and sampling costs.

AI-written summary · about

  1. 0:00The performance mystery
  2. 2:00Limitations of standard tools
  3. 7:12Teaching perf to read Python
  4. 14:24Stack unwinding strategies
  5. 21:38Solving the mystery
  6. 24:58Advanced profiling applications
~/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.