ab4n
Mike Taylor
@hammer_mt
Oct 9
I don't understand this โ why would you import a package into your code that you weren't using?
Lucas Beyer (bl16)
@giffmana
Sep 13
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
Maxime Rivest ๐งโโ๏ธ๐ฆ๐ง
@MaximeRivest
Oct 9
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
1
Mike Taylor
@hammer_mt
Oct 9
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.
1
Load more