Skip to content

Conversation

@fereidani
Copy link

Hey,
Great project! I just made these changes to optimize to_bytes(), you can use the added benchmark to check the performance.
I only tested this on my AMD x64 6650u.
It would be a good idea to test it on other platforms before merging.
I also tested directly using reverse_bits like:

result.push(i.reverse_bits());

and it performed worst than lookup table solution.

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 this pull request may close these issues.

1 participant