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

Vectorised Pack Bits within BitWriter #2257

Open
tustvold opened this issue Aug 1, 2022 · 0 comments
Open

Vectorised Pack Bits within BitWriter #2257

tustvold opened this issue Aug 1, 2022 · 0 comments
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@tustvold
Copy link
Contributor

tustvold commented Aug 1, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

BitReader has a vectorised get_batch method for unpacking blocks of bit-packed values. This provides a significant performance improvement over processing each value separately.

BitWriter, however, has no corresponding functionality to write blocks of values, and this represents a major bottleneck for encoding primitive values.

Describe the solution you'd like

We should add a BitWriter::put_batch method that can vectorise packing runs of primitives

Describe alternatives you've considered

We could not do this

Additional context

@tustvold tustvold added the enhancement Any new improvement worthy of a entry in the changelog label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

No branches or pull requests

1 participant