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

Implement repeated DataPointers #189

Open
kevmo314 opened this issue Mar 18, 2024 · 0 comments
Open

Implement repeated DataPointers #189

kevmo314 opened this issue Mar 18, 2024 · 0 comments
Assignees

Comments

@kevmo314
Copy link
Owner

For some values it's unnecessary to store the values of adjacent DataPointers. For example, if we have 10 key "abcd"'s, we don't need to store "abcd" 10 times, we can store it once and write a byte that indicates that the next keys are identical.

Note: this is a little tricky when splitting nodes as we cannot cross node boundaries. In that light, it would be best to make this change in MarshalBinary/UnmarshalBinary and let the nodes store multiple copies in the actual memory representation. Essentially, in MarshalBinary, add a flag bit (maybe the first bit of the length? not sure what to do for fixed width) that indicates if it's a repeated value. If it is, skip encoding the value. In UnmarshalBinary, do the opposite.

This was referenced Apr 9, 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

Successfully merging a pull request may close this issue.

2 participants