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

Refactor match() to use bytes.Equal for better performance #6

Merged
merged 1 commit into from
Aug 7, 2016
Merged

Refactor match() to use bytes.Equal for better performance #6

merged 1 commit into from
Aug 7, 2016

Conversation

SchumacherFM
Copy link
Contributor

type fingerprint []byte and []byte have the same memory layout hence bytes.Equal can be used without type casting.

@irfansharif irfansharif merged commit c3db6c3 into irfansharif:master Aug 7, 2016
@irfansharif
Copy link
Owner

good catch! i was averse to using reflect.DeepEqual(a, b interface{}) but didn't realise there was another alternative.

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