parking_lot
parking_lot copied to clipboard
Why isn't this implementation in the standart library?
By the README this lib rocks, and since it is so much faster than the std why isn't it there?
Just out of curiosity.
An attempt was made to make std use this implementation. But it was ultimately abandoned/put on hold for a number of reasons. There were issues with certain platforms that did not handle time/sleeping very well (such as Wasm and SGX) and a large review of parking_lot
yielded a number of issues that had to be addressed before it would be approved into std, and these things have not been fixed.
If you want to read a lot more you can dig deep into this PR: https://github.com/rust-lang/rust/pull/56410
Note that the Std implementation has been overhauled in Rust v1.62.