Setuptools 60 slows down startup #207
Replies: 5 comments 1 reply
-
I guess it depends on whether most applications actually use these modules. I suspect that deep-freezing these modules might be easier than fixing setuptools. |
Beta Was this translation helpful? Give feedback.
-
Any idea how much of the slowdown we get back by deep-freezing those modules? |
Beta Was this translation helpful? Give feedback.
-
IIUC, part of that cost is from making a copy of distutils on disk. |
Beta Was this translation helpful? Give feedback.
-
@pablogsal opened an issue on setuptools: pypa/setuptools#3006. |
Beta Was this translation helpful? Give feedback.
-
Fixed by setuptools 60.5.0. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We discovered that if you have setuptools 60 or higher installed, a whole bunch of extra modules are imported that add ~10 msec to startup.
This caused a noticeable bump in the timings for
python_startup
between Dec 18 and 19, 2021.Should we just deep-freeze all the imported stdlib modules?
Here's the list of extra modules:
Presumably there's overlap with the modules imported by
runpy
(used bypython -m module
).Beta Was this translation helpful? Give feedback.
All reactions