-
Notifications
You must be signed in to change notification settings - Fork 399
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 fxhash #48
*: use fxhash #48
Conversation
can you give a benchmark with them? |
Simple benchmark for querying on 6 nodes.
Another benchmark by the crate author. |
how about 3 nodes? |
I don't think there will be much difference as it only cost 4ns already. We don't just use it for progresses but also for read index. |
log = "0.3" | ||
protobuf = "1.2" | ||
quick-error = "0.2" | ||
rand = "0.4" | ||
fxhash = "0.2.1" |
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.
Hm, this library has has an open PR since December that hasn't been addressed: cbreeden/fxhash#3. It does appear to be used in Firefox though. The code seems good overall. I am kind of sad to move away from servo maintained libraries like fnv
though.
LGTM PTAL @Hoverbear |
PTAL |
My primary concern in this case is just that |
I find that servo also uses it, so I think it is fine. |
Then let's do it. :) |
FlatMap sorts keys, which is unnecessary for small groups. A Raft group usually has 3 ~ 5 nodes.