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

DeleteVersions #271

Merged
merged 4 commits into from
Jun 22, 2020
Merged

DeleteVersions #271

merged 4 commits into from
Jun 22, 2020

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Jun 20, 2020

Implement MutableTree#DeleteVersions. This method will be used in the revised pruning strategy in the Cosmos SDK, where pruned versions will be deleted in "batches" as opposed to on a block-by-block basis.

@erikgrinaker feel free to keep this PR open while you tackle removing pruning from the IAVL as I know you'll also further optimize this method. Or you can also merge this and address optimizations later.

/cc @zmanian

@alexanderbez alexanderbez added T:enhancement Type: Enhancement S:wip Status: work in progress. labels Jun 20, 2020
@alexanderbez alexanderbez marked this pull request as ready for review June 20, 2020 18:25
Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

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

LGTM. Let's merge this as a first API, we may not want to hold up the next release over the optimizations since they're not totally trivial and could take a couple of days to get right.

Would be great to have the dependency changes split out as a separate PR though.

@alexanderbez alexanderbez merged commit 0106ce5 into master Jun 22, 2020
@alexanderbez alexanderbez deleted the bez/delete-versions branch June 22, 2020 13:28
@alexanderbez
Copy link
Contributor Author

That was just the result of a go mod tidy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:wip Status: work in progress. T:enhancement Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants