Starting with Rust 1.62, the standard lib mutexes have roughly equal performance to parking_lot: https://github.com/rust-lang/rust/pull/95035 IMO we could replace parking_lot with the standard lib mutexes throughout our code.
Activity
jhdcs commentedon Jul 5, 2022
This looks pretty good to me! It will help reduce the size of the library as well!
The only snag I can foresee is that we will have to deal with the possibility of
poison
ed Mutexes again, unlessstd
did away with that?nnmm commentedon Jul 5, 2022
Yes, the
lock()
calls will be slightly uglier, but lock poisoning is a safety feature, so I'd say it's a net win.esteve commentedon Jul 5, 2022
Sounds good to me. The more we can use from
stdlib
the better 🙂