Re: Lazy Imports -- I Like This Idea
Paul Rubin <[email protected]> Mon, 30 Mar 2026 11:21:55 -0700
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
Lawrence D’Oliveiro <[email protected]> writes: > That same script imports bs4, as it happens. It still manages an > overall startup time of just a quarter second. Importing bs4 can take a few hundred msec on the cheap VPS that I use it on. So deferring it speeds the program startup by that much.