-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman module import time is quite slow at ~200 ms #433
Comments
Hey, firstly, thanks a lot for using Interesting report. Surely something worth considering for your use case and for podman's future in general.
|
I'm adding
podman
module to nmci, an internal python library for NetworkManager testing. The library is imported in at least 2 commands run per test in a suite with some 1500 tests. The difference of import time ofnmci
with and without podman is at around 200 ms, which means that use of plainimport podman
at the beginning of one of the.py
files would add non-negligible 10 min to the test suite run time.A workaround is to conditionally import
podman
, however the use of the module is then much less straightforward.a basic look into
python3 -X importtime -c 'import podman'
shows:requests
andurllib3
:So maybe the easiest short-term solution could be a delayed loading of
requests
and long-term replacing it with a leaner library?Numbers are from a laptop with Fedora 41, respective versions are:
The text was updated successfully, but these errors were encountered: