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

Cache/prune option #21

Closed
mappum opened this issue Sep 3, 2019 · 1 comment
Closed

Cache/prune option #21

mappum opened this issue Sep 3, 2019 · 1 comment

Comments

@mappum
Copy link
Collaborator

mappum commented Sep 3, 2019

There is currently no API for controlling the pruning strategy, it's just a constant number of tree levels to keep: https://github.com/nomic-io/merk/blob/develop/src/merk/mod.rs#L205

Pruning based on tree levels is a pretty simple strategy and eventually we can support more (e.g. based on counting frequency of updates/reads), but for now we'll just take an optional parameter for number of levels somewhere.

@mappum
Copy link
Collaborator Author

mappum commented Sep 5, 2024

This is now controllable though the Commit trait.

@mappum mappum closed this as completed Sep 5, 2024
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

No branches or pull requests

1 participant