~/talk

Lazy imports and the art of interpreter procrastination

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

Python 3.15 adds explicit lazy imports so modules defer loading until first use; at scale an upstream fork (CinderX/Cinder extensions) and rollouts report 12x fewer modules and roughly 70% startup reduction with large memory wins and fewer OOMs. PEP 690 is rejected, PEP 810 (explicit opt‑in syntax) lands. A Rust tool, Lifeguard static analyzer, is used to detect safe laziness. Implementation reifies proxies on first access and pairs with the adaptive interpreter to avoid runtime overhead.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:53Understanding lazy imports
  3. 3:58Scale and performance impact
  4. 5:44History of PEP 690
  5. 6:04Implementation and adoption
~/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.