Closed
Description
import prefect
takes roughly 1.0 - 1.5 seconds. Much of the time is from importing docker, dask, requests, and other large packages.
It would be ideal for import prefect
to be as fast as possible, which would reduce the prefect CLI startup time, as well as the time to start running flows.
It would be worth investigating:
- which packages are taking the most time to load (via
profimp
,-X importtime
, or similar) - loading 3rd party packages in a just-in-time fashion (deferred import)
- removing unused imports (and enforcing in CI via pyflakes/autoflakes)
Activity