~/talk

The Bakery: How PEP810 sped up my bread operations business

Talkat PyCon US 2026 · 2026-05-13..05-19· [python, web-performance]
slides:none on file

PEP 810 adds an explicit lazy import keyword in Python 3.15 that defers module loading until first use, turning names into lightweight proxies. Applying it to a CLI (uploader demo: breadctl) and measuring with Hyperfine yields concrete wins: a reported 23% faster help command and ~26% module-import reduction in the demo, while large orgs see up to ~70% startup improvements and ~40% memory savings (Meta, HRT, PySide). Caveats: delayed import errors, hidden side effects, and not all modules should be lazy (use selective profiling with import-time counters).

AI-written summary · about

  1. 0:00PEP 810 introduction
  2. 0:49Why PEP 810 matters
  3. 2:55Performance gains from lazy imports
  4. 4:00How lazy imports work
  5. 6:02Live demo and benchmarks
  6. 9:51Meta and HRT impact
  7. 11:38Beyond CLI tools
  8. 13:43Migration guide
  9. 16:30Pitfalls of lazy imports
  10. 19:19Implementation status
  11. 21:06Q&A
~/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.