I don't understand this โ€“ why would you import a package into your code that you weren't using?
So it turns out people who care about performance already turn all Python imports into local ones under the hood: both Hudson River Trading, and Meta's production python auto lazy import:
5
1
7
Replying to @hammer_mt
could it be the the same script, depending on the control flow will not activate all path at every runtime?

Oct 9, 2025 ยท 10:52 AM UTC

Replying to @MaximeRivest
Oh I guess so. When they say 'performance' do they mean it takes a while to deploy? I didn't think imports slowed down execution much.