Skip to content

Commit fe8d577

Browse files
committed
refactor: Replace lazy_static with OnceLock for zero-cost concurrent reads based on review #266 (comment)
1 parent 1ce7654 commit fe8d577

File tree

10 files changed

+446
-475
lines changed

10 files changed

+446
-475
lines changed

candle-binding/Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

candle-binding/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ serde = { version = "1.0", features = ["derive"] }
3333
serde_json = "1.0.93"
3434
tracing = "0.1.37"
3535
libc = "0.2.147"
36-
lazy_static = "1.4.0"
3736
rand = "0.8.5"
3837
# Performance optimization: parallel processing and lock-free initialization
3938
rayon = "1.8"
40-
once_cell = "1.19"
39+
once_cell = "1.19" # Used for lazy initialization of global state
4140

4241
[dev-dependencies]
4342
rstest = "0.18"

0 commit comments

Comments
 (0)