Skip to content

fs.get_missing_deps: use find_spec to check if packages are missing instead of importing them #191

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

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

skshetry
Copy link
Collaborator

This speeds up dvc version from >1s to ~0.35s in my machine.
See https://docs.python.org/3/library/importlib.html#checking-if-a-module-can-be-imported.

@skshetry skshetry requested review from a team and karajan1001 and removed request for a team January 31, 2023 11:17
…s are missing instead of importing from them

This speeds up `dvc version` from >1s to ~0.35s in my machine.
@skshetry skshetry merged commit 06a9ab4 into main Jan 31, 2023
@skshetry skshetry deleted the use-find-spec branch January 31, 2023 15:29
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.

1 participant