Skip to content

Use fnv hash #546

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

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Use fnv hash #546

merged 2 commits into from
Nov 12, 2021

Conversation

robinheghan
Copy link
Contributor

This replaces the current Murmur3 based hash function with a FNV-based hash function.

Rationale can be found here: https://github.com/robinheghan/fnv1a/blob/main/docs/why_fnv_is_great_for_elm.md

Modest speedup in Chrome (~5%) while Safari and Firefox see huge increase in performance. With all my changes (past PRs included) Safari jumps from ~40% improvement to 55-60% improvement. FF jumps from ~35% to ~50%.

Copy link
Owner

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! 🚀

@rtfeldman rtfeldman merged commit 6c1001c into rtfeldman:master Nov 12, 2021
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