Skip to content
Snippets Groups Projects
Commit e15c938f authored by Leo Singer's avatar Leo Singer
Browse files

Speed up imports by using importlib instead of pkg_resources

Speed up imports by up to a second by replacing uses of `pkg_resources`
with the new Python standard library module `importlib.resources` (or,
for Python < 3.7, the backport `importlib_resources`). The old
`pkg_resources` module is known to be slow because it does a lot of
work on startup.

See, for example,
[pypa/setuptools#926](https://github.com/pypa/setuptools/issues/926) and
[pypa/setuptools#510](https://github.com/pypa/setuptools/issues/510).
parent e4cc8d59
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment