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

[WIP] Add optional MurmurHash support #142

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

kusalk
Copy link

@kusalk kusalk commented Dec 24, 2024

WIP: Await merge of #134 first


The changes encompassed in this PR were originally included with those in #134. I extracted these change into this separate PR following a discussion in the former PR.


This PR introduces support for MurmurHash as an alternative to the default MD5. In my experience it is over 4x faster at hashing (rough benchmarks below).

MurmurHash can be activated with the following argument -Dhash.algorithm=murmur. The argument must be supplied to both the agent and collector.

Benchmark: MethodRegistry#getHash

Scenario: ConcurrentHashMap cache disabled

Before PR (ns/op) After PR (ns/op)
581.834 ± 46.560 139.283 ± 6.211

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.

1 participant