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

Swap to FxHash instead of default Hasher #2084

Merged
merged 2 commits into from
Aug 9, 2022
Merged

Conversation

GnomedDev
Copy link
Member

@GnomedDev GnomedDev commented Aug 7, 2022

We don't need to care about HashDOS as the IDs are controlled by discord, not the user, so we can swap to a cheaper Hasher to improve cache performance. A debate is to be had between AHash and FxHash however:

  1. We are simply hashing IDs (u64s), and would be using nohash_hasher if not for distribution
  2. Benchmarks could take a while to do, and this is simple performance improvement now instead of waiting a while for cache statistics to be added, which is when AHash vs FxHash debates could be settled.

@github-actions github-actions bot added the cache Related to the `cache`-feature. label Aug 7, 2022
@arqunis arqunis added the enhancement An improvement to Serenity. label Aug 9, 2022
@arqunis arqunis merged commit 0453b37 into serenity-rs:next Aug 9, 2022
arqunis pushed a commit to arqunis/serenity that referenced this pull request Aug 21, 2022
arqunis pushed a commit to arqunis/serenity that referenced this pull request Sep 2, 2022
kangalio pushed a commit to kangalio/serenity that referenced this pull request Sep 11, 2022
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 1, 2022
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Nov 7, 2022
arqunis pushed a commit to arqunis/serenity that referenced this pull request Nov 13, 2022
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Feb 28, 2023
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request May 18, 2023
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request May 30, 2023
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Sep 21, 2023
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 17, 2023
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 24, 2023
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache Related to the `cache`-feature. enhancement An improvement to Serenity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants