Skip to content

Conversation

@karajan1001
Copy link
Contributor

fix #7196

Refactor exp_ref_by_name in dvc/repo/experiments/utils.py.

In previous the exp_ref_by_name walk throught all of the references to
match only one exp name. This makes multi exp name seeking to be a job
of O(mn) complexity, Walking though the exp ref and return all of the
exp ref with greatly reduce this complexity to O(n)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@karajan1001 karajan1001 requested a review from pmrowla December 28, 2021 07:47
@karajan1001 karajan1001 requested a review from a team as a code owner December 28, 2021 07:47
fix: treeverse#7196

1. Refactor exp_ref_by_name in `dvc/repo/experiments/utils.py`.

In previous the exp_ref_by_name walk throught all of the references to
match only one exp name. This makes multi exp name seeking to be a job
of `O(mn)` complexity, Walking though the exp ref and return all of the
exp ref with greatly reduce this complexity to `O(n)`

Co-authored-by: Peter Rowlands (변기호) <peter@pmrowla.com>
@karajan1001 karajan1001 enabled auto-merge (rebase) January 5, 2022 08:29
@karajan1001 karajan1001 merged commit b6a2402 into treeverse:main Jan 6, 2022
@karajan1001 karajan1001 deleted the refactor_exp_utils branch January 8, 2022 13:05
@karajan1001 karajan1001 added refactoring Factoring and re-factoring A: experiments Related to dvc exp labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: experiments Related to dvc exp refactoring Factoring and re-factoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exp pull/push: add multi exp name arg support

2 participants