mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
shuf: Use rustc-hash for performance
This commit is contained in:
Generated
+1
@@ -4075,6 +4075,7 @@ dependencies = [
|
||||
"rand 0.9.2",
|
||||
"rand_chacha 0.9.0",
|
||||
"rand_core 0.9.5",
|
||||
"rustc-hash",
|
||||
"sha3",
|
||||
"uucore",
|
||||
]
|
||||
|
||||
@@ -26,6 +26,7 @@ rand_core = { workspace = true }
|
||||
sha3 = { workspace = true }
|
||||
uucore = { workspace = true }
|
||||
fluent = { workspace = true }
|
||||
rustc-hash = "2.1.1"
|
||||
|
||||
[[bin]]
|
||||
name = "shuf"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
// hijack HashMap for performance
|
||||
type HashMap<K, V> = std::collections::HashMap<K, V, rustc_hash::FxBuildHasher>;
|
||||
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
use uucore::error::UResult;
|
||||
|
||||
Reference in New Issue
Block a user