This talk demonstrates measurable performance improvements using Python 3.15(?)'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.