Anže on Nostr: Can't wait for lazy imports in Python 3.15! I spent a bunch of time and tokens over ...
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).
{
"id":"837481820263b3142c581c675629d65174f55e19d4501166c8280216434054dc",
"pubkey":"a39a91945320863e63212c3b4f06a13aa380f33aa231788cf172e6701ba657f4",
"created_at":1773603330,
"kind":1,
"tags": [
[
"imeta",
"url https://cdn.fosstodon.org/media_attachments/files/116/234/867/539/065/013/original/7293437898250f63.mp4",
"m video/mp4"
],
[
"proxy",
"https://fosstodon.org/@anze3db/116234867848749104",
"web"
],
[
"proxy",
"https://fosstodon.org/users/anze3db/statuses/116234867848749104",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/anze3db/statuses/116234867848749104",
"pink.momostr"
],
[
"-"
]
],
"content":"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.\n\nThe `https://manage.py check` command is now 3.8x faster (9.45s down to 2.48s).\nhttps://cdn.fosstodon.org/media_attachments/files/116/234/867/539/065/013/original/7293437898250f63.mp4\n",
"sig":"bade96856cfb31576e865ebc16c5d8faaf522d891b7bedb40b514055b607408f844b5eb1946d44efd5f68c36bd31c99d8f478bad96378e36b61e21fee6b2025c"
}