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

Improve performance of AnyVar.put_object() by eliminating unnecessary digest computation #73

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

ehclark
Copy link
Contributor

@ehclark ehclark commented Jan 8, 2024

In AnyVar.put_object(), use new parameter to vrs_enref() method to return both the object and identifier. This eliminates the need to recompute the already computed digest and improve performance.

See also #71

jsstevenson
jsstevenson previously approved these changes Jan 11, 2024
korikuzma
korikuzma previously approved these changes Jan 15, 2024
src/anyvar/anyvar.py Outdated Show resolved Hide resolved
Co-authored-by: Kori Kuzma <korikuzma@gmail.com>
@ehclark ehclark dismissed stale reviews from korikuzma and jsstevenson via deac73b January 16, 2024 15:36
@ehclark ehclark requested a review from korikuzma January 16, 2024 15:38
@ehclark ehclark merged commit db6964b into main Jan 16, 2024
5 checks passed
@ehclark ehclark deleted the issue-71 branch January 16, 2024 17:54
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.

Update put_object to take advantage of vrs-python API changes and avoid unnecessary VRS computation
3 participants