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

core\cc: Optimize resource hashing #2095

Merged
merged 1 commit into from
Jul 26, 2018
Merged

Conversation

ben-clayton
Copy link
Contributor

We were previously hashing the data twice (16 byte hash + 4 byte hash) to build a 20-byte combined hash.

Instead, perform a 16 byte hash, and append the 4-byte length as the extra entropy.

We were previously hashing the data twice (16 byte hash + 4 byte hash) to build a 20-byte combined hash.

Instead, perform a 16 byte hash, and append the 4-byte length as the extra entropy.
@ben-clayton ben-clayton merged commit 81386b8 into google:master Jul 26, 2018
@ben-clayton ben-clayton deleted the fast-hash branch July 26, 2018 13:12
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