parking_lot icon indicating copy to clipboard operation
parking_lot copied to clipboard

Why isn't this implementation in the standart library?

Open rsofista opened this issue 4 years ago • 2 comments

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.

rsofista avatar Jul 20 '20 23:07 rsofista

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

faern avatar Jul 21 '20 05:07 faern

Note that the Std implementation has been overhauled in Rust v1.62.

daxpedda avatar May 12 '23 13:05 daxpedda