Cargo Features
sparking-lot-core has no features set by default.
[dependencies]
sparking-lot-core = { version = "0.1.3", features = ["thread-parker", "more-concurrency", "loom-test"] }
- thread-parker
-
New parker type, performance not compared to the old implementation.
- more-concurrency
-
Increases memory consumption but now has smaller load than parking-lot until 384 threads instead of 96.
Note that memory consumption is static and
in the worst case goes to ~32Kib. - loom-test
-
The recommended way of testing loom. DO NOT spawn real threads in tests. Does nothing without
--cfg loom
.