Repository navigation
[core] Keep the rbm32 and rbm64 union decoded between rows - #1568
Open
JeonDaehong wants to merge 1 commit into
Open
JeonDaehong wants to merge 1 commit into
JeonDaehong wants to merge 1 commit into
Conversation
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.
Purpose
Closes #1567.
rbm32andrbm64deserialized and re-serialized the accumulated bitmap for every row, so a key with many rows took time quadratic in its bitmap size.Brief change log
result()serializes the union. A lone input is still returned unchanged.Tests
keeps_a_lone_input_and_resets_the_unionin both files checks that a lone Java input is returned byte for byte, that the union is right, and thatresetclears it.Measured on c7i.8xlarge, release build, main and this branch alternated 3 times (ranges across runs). The output bytes hash the same on both for every shape.
Writing one commit through a table with
rbm32:Aggregating directly, 1 key with N single-value bitmaps:
One input per key is unchanged (25–26 ms for 100,000 keys either way). Three inputs per key, 100,000 keys: rbm32 81 → 60 ms, rbm64 129 → 98 ms.
API and Format
No public API or storage format changes.
Documentation
None.