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

Remove OneOfOne xxhash in favor of cespare #15518

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

vjsamuel
Copy link
Contributor

@vjsamuel vjsamuel commented Jan 13, 2020

Before this PR we had two implementations of xxhash in the codebase: cespare/xxhash and OneOfOne/xxhash.

This PR standardizes on the cespare/xxhash implementation.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@@ -51,3 +51,7 @@ func (f *hashMethod) Unpack(str string) error {
*f = m
return nil
}

func newXxHash() hash.Hash {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment here as to why this wrapper function is necessary, especially since one isn't necessary for the other hash methods? I just put up cespare/xxhash#36; if/when that is merged and released, we won't need this wrapper function here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like cespare/xxhash#36 won't be merged. So no point mentioning it in a comment, but I think it would still be good to have a comment here about the need for the wrapper.

@ycombinator
Copy link
Contributor

jenkins, test this

@ycombinator
Copy link
Contributor

jenkins, test this

1 similar comment
@ycombinator
Copy link
Contributor

jenkins, test this

@ycombinator
Copy link
Contributor

Travis CI is green. Jenkins CI failures are unrelated. Merging.

Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM.

@ycombinator ycombinator merged commit 6196c59 into elastic:master Jan 14, 2020
ycombinator added a commit that referenced this pull request Jan 14, 2020
Co-authored-by: Vijay Samuel <vjsamuel1990@gmail.com>
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