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

fs: optimize dvc list --recursive #8150

Merged
merged 6 commits into from Aug 23, 2022
Merged

fs: optimize dvc list --recursive #8150

merged 6 commits into from Aug 23, 2022

Conversation

rlamy
Copy link
Member

@rlamy rlamy commented Aug 19, 2022

See #8135 for context.

._get_key() is quite expensive. The general idea is to avoid flip-flopping between path and "key" representations.

@rlamy rlamy requested a review from a team as a code owner August 19, 2022 09:53
@rlamy rlamy requested a review from skshetry August 19, 2022 09:53
@rlamy rlamy self-assigned this Aug 23, 2022
@rlamy
Copy link
Member Author

rlamy commented Aug 23, 2022

I think this is ready to merge. In my local benchmarks, the PR brings time down from 104 s to 38 s.

@rlamy rlamy requested a review from efiop August 23, 2022 18:10
@efiop
Copy link
Member

efiop commented Aug 23, 2022

For the record: discussed during team meetings that we can go step-by-step here and it is worth merging this considering the results that it brings already 🙂

@efiop efiop changed the title [WIP] fs: optimize dvc list --recursive fs: optimize dvc list --recursive Aug 23, 2022
Copy link
Member

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@efiop efiop merged commit cc6deb2 into main Aug 23, 2022
@efiop efiop deleted the optimize-recursive-ls branch August 23, 2022 20:20
@efiop efiop added performance improvement over resource / time consuming tasks A: data-management Related to dvc add/checkout/commit/move/remove labels Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: data-management Related to dvc add/checkout/commit/move/remove performance improvement over resource / time consuming tasks
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants