RSSAmplifier

Filopoetica · Oct 20, 2025

[Py] Import times and deferring

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Some dependencies are very heavy and the recommendation is then to defer their import. A deferred import happens within a function, instead of the beginning of a module. The advantage of deferred imports is that only the first time the dependency is needed, it is then imported, instead of causing a high overhead import time when a program is launched. Especially, for cases in which that dependency…

Read on ggirelli.info

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.