DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Adopting Python 3.15's lazy imports: a 4× faster CLI, and where they didn't help

Quality: 8/10 Relevance: 9/10

Summary

The article discusses adopting Python 3.15's lazy imports to speed up startup times across CLI, TUI, and MCP server interfaces. It covers measurement results (CLI --help dropping from ~2.23s to ~0.47s), the gating approach using Lifeguard to ensure safe deferral, and considerations where deferral isn't safe, plus related tooling and profiling techniques.

🚀 Service construit par Johan Denoyer