perf: replace SHA256+hex with Blake3 for cache key generation
- Switch from sha2 crate to blake3 for faster hashing (4-7x speedup) - Use Blake3's built-in to_hex() instead of separate hex crate - Remove hex and sha2 dependencies - Eliminates 40% CPU bottleneck in generate_cache_key()
This commit is contained in:
@@ -4,15 +4,14 @@ version = "1.0.4"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
blake3 = "1.5"
|
||||
clap = { version = "4.5.23", features = ["derive"] }
|
||||
colored = "3.0.0"
|
||||
directories = "5.0.1"
|
||||
futures = "0.3.31"
|
||||
hex = "0.4.3"
|
||||
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "json"] }
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.145"
|
||||
sha2 = "0.10.8"
|
||||
thiserror = "2.0.11"
|
||||
tokio = { version = "1.48.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
|
||||
toml = "0.8.19"
|
||||
@@ -20,3 +19,6 @@ walkdir = "2.5.0"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.15"
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
|
||||
Reference in New Issue
Block a user