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

Tree::value_size #74

Open
marvin-j97 opened this issue Nov 2, 2024 · 0 comments
Open

Tree::value_size #74

marvin-j97 opened this issue Nov 2, 2024 · 0 comments
Labels
api enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@marvin-j97
Copy link
Contributor

marvin-j97 commented Nov 2, 2024

For blob trees, it can skip reading the blob from the value-log because the size is stored in the vhandle (if Indirect), so it would be possibly much faster than

tree.get()?.unwrap().len()

Usage:

tree.value_size()?.unwrap_or_default()
@marvin-j97 marvin-j97 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed api labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant