2026-03-15 19:35 UTC
Can't wait for lazy imports in Python 3.15! I spent a bunch of time and tokens over the weekend inlining heavy imports so that they don't get loaded during initial start of a Django app.
The `https://manage.py check` command is now 3.8x faster (9.45s down to 2.48s).
Replies (2)
-
@jack@social.jacklinke.com 2026-03-15 21:36
@anze3db I hadn't heard about this upcoming feature, but after reading a bit more about the implementation I'm pretty excited for it. It's something that seems like it *obviously* should have been part of Python all along. Hindsight and all that.
-
@jonathanbiemond@fosstodon.org 2026-03-16 03:38
@anze3db That's awesome! I didn't imagine a use case for lazy imports in web applications. I'm excited to try this out!