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

Add type alias for common MessageIdMap #1486

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

rukai
Copy link
Member

@rukai rukai commented Feb 19, 2024

Allows us to easily swap out our hashmap/hash implementation for the common idiom of HashMap<MessageId, V>.
Given how common this will be I think having finer control over our hashmap/hash will be quite valuable.

For now uses the fnv hasher as it is known to perform much better for integer keys than the default siphasher https://crates.io/crates/fnv

@rukai rukai requested a review from conorbros February 19, 2024 07:22
Copy link
Collaborator

@cjrolo cjrolo left a comment

Choose a reason for hiding this comment

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

Approved, check my comment on #1483 regarding the need for an hashmap.

@rukai rukai enabled auto-merge (squash) February 19, 2024 20:59
@rukai rukai merged commit fea7468 into shotover:main Feb 19, 2024
40 checks passed
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.

3 participants