-
Notifications
You must be signed in to change notification settings - Fork 10
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 #![no_std] by default #12
base: main
Are you sure you want to change the base?
Conversation
Hi, Thanks for this, I'm generally in favour of these changes, and mostly looks good. I'm slightly unsure of the change to the default hasher, however. I would like to make sure that the default hasher is good enough for most use cases, and compares well to the default hasher in It would be good to add a test/benchmark over use cases with representative data, that will test the number of collisions of the different hashers (including the default in Something like what was done here. From that comment (the dataset sizes are too small, especially for numbers we would want to measure collisions up to at least |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes, otherwise looks good.
@@ -129,7 +129,8 @@ where | |||
A: Allocator, | |||
{ | |||
/// The default initial size of the map. | |||
const INITIAL_SIZE: usize = 8; | |||
/// Make sure it's a multiple of CELLS_IN_USE, so that no floats are needed during resizing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are -> are not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, meant: "no floats are needed" -> "floats are not needed". It's a little more clear.
@@ -161,7 +163,8 @@ where | |||
A: Allocator, | |||
{ | |||
/// The default initial size of the map. | |||
const INITIAL_SIZE: usize = 8; | |||
/// Make sure it's a multiple of CELLS_IN_USE, so that no floats are needed during resizing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are -> are not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, meant: "no floats are needed" -> "floats are not needed". It's a little more clear.
#![no_std]
makes this crate usable for kernel development.