You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generating two random numbers each time a hasher is created is a high overhead.
Rust's default approach is to use the thread local storage to generate a random value and then for each subsequent hasher increment the number.
This is not ideal, because it means if you learn one seed you learn them all, it also requires a hash map lookup each time you want to instantiate a hash map. (Which is not a big deal if that were fast, but right now that involves SipHash which is MUCH slower.)
The text was updated successfully, but these errors were encountered:
Generating two random numbers each time a hasher is created is a high overhead.
Rust's default approach is to use the thread local storage to generate a random value and then for each subsequent hasher increment the number.
This is not ideal, because it means if you learn one seed you learn them all, it also requires a hash map lookup each time you want to instantiate a hash map. (Which is not a big deal if that were fast, but right now that involves SipHash which is MUCH slower.)
The text was updated successfully, but these errors were encountered: