Skip to content
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

cache importlib_metadata_package_distributions #188

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

pmeier
Copy link
Member

@pmeier pmeier commented Nov 8, 2023

Closes #181. package_distributions seems to involve heavy path operations that we only need to perform once. On my system, this nets us a 4x decrease in function calls and 2.5 seconds faster import. On slower file systems the latter number is probably even more pronounced. Benchmark in #181 (comment).

Thanks @nenb for pointing this out!

@pmeier pmeier merged commit dc497ef into main Nov 8, 2023
10 checks passed
@pmeier pmeier deleted the cache-package-distributions branch November 8, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Package imports take an unusually long time to complete
1 participant