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

Reduce memory usage of ART #1907

Closed
wants to merge 3 commits into from
Closed

Reduce memory usage of ART #1907

wants to merge 3 commits into from

Conversation

sfiction
Copy link
Contributor

@sfiction sfiction commented Feb 6, 2025

No description provided.

In the old version of `art_iter_prefix`, if the `partial` matches the first
character, `partial_len` will always be added to `depth`, even when `partial`
is not fully matched.

See also armon/libart#40.
1. Reorder art_node fields to reudce struct size.
2. Apply 4-byte packing to art_leaf struct, thus the offset of art_leaf->key
   is equal to the size of art_leaf.
@sfiction sfiction closed this Feb 10, 2025
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.

1 participant