Repository navigation
Checkpoint pdarrays of bigints - #4771
Merged
Merged
Conversation
Signed-off-by: Vassily Litvinov <[email protected]>
Signed-off-by: Vassily Litvinov <[email protected]>
vasslitvinov
force-pushed
the
checkpoint-bigints
branch
from
August 7, 2025 16:22
d065ba8 to
e29bcf4
Compare
ajpotts
approved these changes
Aug 7, 2025
lydia-duncan
approved these changes
Aug 8, 2025
lydia-duncan
left a comment
Contributor
There was a problem hiding this comment.
Only one naming nit, otherwise I think this looks good!
drculhane
pushed a commit
to drculhane/arkouda
that referenced
this pull request
Aug 20, 2025
Add support for bigint arrays to checkpointing. The initial implementation used ULEB128 encoding for saving "count", i.e., the number of bytes needed to store a given bigint. The intention was to use the smallest number of bytes possible for representing the "count", as ULEB128 is variable-length, akin to utf-8. I changed to always using 4 bytes for saving "count" in the second commit to simplify the code. I consider the use of extra 2 bytes for bigints that fit within (2^15-1) bytes (4 bytes vs. ULEB128) to be a reasonable compromise between maintainability and efficiency. Contributes to Bears-R-Us#2384. --------- Signed-off-by: Vassily Litvinov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for bigint arrays to checkpointing.
The initial implementation used ULEB128 encoding for saving "count", i.e., the number of bytes needed to store a given bigint. The intention was to use the smallest number of bytes possible for representing the "count", as ULEB128 is variable-length, akin to utf-8. I changed to always using 4 bytes for saving "count" in the second commit to simplify the code. I consider the use of extra 2 bytes for bigints that fit within (2^15-1) bytes (4 bytes vs. ULEB128) to be a reasonable compromise between maintainability and efficiency.
Contributes to #2384.