Skip to content

add xxHash library#1624

Merged
danielhochman merged 2 commits intomasterfrom
add-xxhash
Sep 12, 2017
Merged

add xxHash library#1624
danielhochman merged 2 commits intomasterfrom
add-xxhash

Conversation

@danielhochman
Copy link
Copy Markdown
Contributor

Currently we use std::hash for hashing which is not consistent across platforms. This introduces xxHash which is portable, fast, and used by many other open-source projects.

After this PR is merged, I will followup with a change to update ENVOY_BUILD_SHA and convert usages of std::hash.

@danielhochman danielhochman merged commit b3542cd into master Sep 12, 2017
@danielhochman danielhochman deleted the add-xxhash branch September 12, 2017 17:41
@htuch
Copy link
Copy Markdown
Member

htuch commented Sep 12, 2017

@danielhochman is this hash going to be strong enough to resolve #1452?

@danielhochman
Copy link
Copy Markdown
Contributor Author

@htuch yeah, it should be strong enough. we largely used https://github.com/rurban/smhasher to evaluate different options. smhasher assigns a quality score based on collision probability, etc for which xxhash earned a 10.

jpsim pushed a commit that referenced this pull request Nov 28, 2022
jpsim pushed a commit that referenced this pull request Nov 29, 2022
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.

3 participants