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

Question about array handling #32

Open
jgarvin opened this issue Apr 21, 2023 · 1 comment
Open

Question about array handling #32

jgarvin opened this issue Apr 21, 2023 · 1 comment

Comments

@jgarvin
Copy link

jgarvin commented Apr 21, 2023

I think the separate compression for each path is interesting but I couldn't tell from the README how it gets applied to arrays. If I have a sequence of messages and there is an array field, is every index of the array considered the leaf of a different path, or are the arrays concatenated for purposes of compression or ...?

@That3Percent
Copy link
Owner

The arrays are concatenated for purposes of compression. There is a separate path for the length of the arrays to compress as well. So, imagine you have [[0, 1, 2], [2, 2, 3], [1]]. This becomes: lengths: [3, 3, 1], data: [0, 1, 2, 2, 2, 3, 1].

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

No branches or pull requests

2 participants