Dhia Hmila
6 days ago

--

Interesting point.

In my case, the bottleneck was an official library that I couldn't replace, and it made a lot of unnecessary imports at startup.

More often, though, it's frameworks and SDKs—not single-purpose packages—that suffer from this. Since they prioritize convenience, they tend to bundle many features into the same distribution. Fortunately, most implement some form of lazy loading.

--

--

Dhia Hmila
Dhia Hmila

Written by Dhia Hmila

I’m a Senior Data Scientist and a python lover.

No responses yet