Talk

The Bakery: How PEP810 sped up my bread operations business

Thursday, May 28

14:40 - 15:10
RoomTortellini
LanguageEnglish
Audience levelBeginner
Elevator pitch

Our (fake) bakery’s Python CLI was so slow that even typing –help felt painful. Using PEP 810’s lazy imports made startup much faster. I’ll show what we changed, the numbers behind it, and how you can do the same in your own tools.

Abstract

This talk demonstrates measurable performance improvements using Python’s newly accepted PEP 810 lazy imports feature. Through a live-coded (scary!) CLI application (breadctl), everyone will see:

  • ?× faster –help command execution
  • ?% reduction in baseline memory usage
  • Clear before/after comparisons using industry-standard benchmarking tools

Ideal for devs seeking wins to optimize CLI tools, test suites, or other applications that may be pluggable (this not needing things loaded EVERY time) while also offering deeper insights into Python’s import system for those ready to dive in. Whether you’re shipping a framework like Litestar (how could I not plug our framework!) or building internal tooling, learn when and how to apply lazy imports effectively.

TagsPython language features
Participant

Jacob Coffee

Jacob Coffee is an Infrastructure Engineer at the Python Software Foundation and a newly invited CPython triager. He supports key Python services such as PyPI.org and Python.org while also contributing to the maintenance of the Litestar ecosystem which boasts libraries such as Litestar, Advanced Alchemy, Polyfactory, and more. He is passionate about open-source development, the mission of the PSF, and enhancing the tools that empower developers worldwide.