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

feat(avl): implement (*Node).TraverseByOffset #599

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

thehowl
Copy link
Member

@thehowl thehowl commented Mar 13, 2023

Add a TraverseByOffset function similar to what is implemented in #447. Allows traversing through parts of the tree with the specified offset and limit, optimising for going through as few child nodes as possible (taking advantage of the length).

@thehowl thehowl requested a review from a team as a code owner March 13, 2023 12:32
@moul moul merged commit 1deeb15 into gnolang:master Mar 13, 2023
@moul moul mentioned this pull request Jul 14, 2024
moul added a commit that referenced this pull request Nov 6, 2024
- add `p/demo/avl/pager`
- update `r/demo/users`

Hey reviewers, in addition to what you wanted to review, I'm
specifically curious if you have any better API/usage ideas.

Example:
https://github.com/gnolang/gno/pull/2584/files#diff-8d5cbbe072737a7f288f74adcaaace11cacc3d31264e6a001515fcae824394e2R33

Related with #447, #599, #868

---------

Signed-off-by: moul <94029+moul@users.noreply.github.com>
Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants