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

optimize xorin #17

Merged
merged 2 commits into from
Aug 14, 2017
Merged

optimize xorin #17

merged 2 commits into from
Aug 14, 2017

Conversation

debris
Copy link
Owner

@debris debris commented Aug 11, 2017

bench_sha3_256_input_4096_bytes is 50% faster on this branch than on master

@tomusdrw can you review the pr and confirm benches results?

Copy link

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Around 35% improvement for me, but still impressive! Good job!

while l >= rate {
setout(self.a_bytes(), &mut output[op..], rate);
let mut l = output.len();
while l >= self.rate {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity: did this change also improve anything? Kind of liked it better with less repetitions of self.

@debris debris merged commit 2f1d5ba into master Aug 14, 2017
@debris debris deleted the optimize_xorin branch August 14, 2017 09:26
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.

2 participants