1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Generally fxhash is than fnv on u32, u64, or any byte sequence with length >= 5. However, keep in mind that hashing speed is not the only characteristic worth considering. That being said, Rustc had an observable increase in speed when switching from fnv backed hashmaps to fx based hashmaps.
  3. Dec 14, 20241,284 downloads per month Used in 60 crates (5 directly). BSD-2-Clause-Patent. 350KB 1K SLoC ustr. Fast, FFI-friendly string interning. [!NOTE] This is a fork of ustr with ahash replaced with fxhash for consistent hashing.. A Ustr (Unique str) is a lightweight handle representing a static, immutable entry in a global string cache, allowing for:. Extremely fast string assignment and comparisons.
  4. Feb 1, 2025For example you can create the queue with the speedy FxHash hasher: use hashbrown::hash_map::DefaultHashBuilder; let mut pq = PriorityQueue::<_, _, DefaultHashBuilder>::with_default_hasher(); Attention: FxHash does not offer any protection for dos attacks. This means that some pathological inputs can make the operations on the hashmap O(n^2).
  5. 7 days agoSee also: internment, string-interner, ustr, lasso, ustr-fxhash, lasso2, boa_interner, smol_str, dup-indexer, static-id, interner Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  6. Dec 30, 2024fxhash: You are hashing integers, or structs of only integers, and the lower quality hash doesn't affect your use case. gxhash: You are hashing long byte streams on platforms with the necessary instruction sets and only care about throughput. You don't need memory safety, HashDoS resistance, or platform independence (for example, gxhash doesn't ...
  7. Jan 12, 2025See also: internment, string-interner, ustr, lasso, intaglio, ustr-fxhash, lasso2, boa_interner, serde_path_to_error, svg, ra_ap_intern. Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily ...
  8. Dec 19, 2024fxhash generally does fairly well for small inputs on the benchmarks, however it has structural weaknesses as a hash which makes it ill-advised to use as a general-purpose hash function in our opinion. For example the lookuphit benchmark on Apple M2 for u64hibits takes 1.77 nanoseconds per lookup for foldhash, but 67.72 nanoseconds for fxhash ...
  9. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX