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

Use a fast modulo algorithm to calculate the bucket #60

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Conversation

rockdaboot
Copy link
Contributor

The used algorithm is ~4x faster on amd64 and likely on other processors as well.

@rockdaboot rockdaboot added the enhancement New feature or request label Nov 11, 2024
@rockdaboot rockdaboot self-assigned this Nov 11, 2024
lru.go Show resolved Hide resolved
@rockdaboot rockdaboot enabled auto-merge (squash) November 13, 2024 11:59
@rockdaboot rockdaboot merged commit df0880f into main Nov 13, 2024
7 checks passed
@rockdaboot rockdaboot deleted the fast-modulo branch November 13, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants