weixin_39915668 2020-11-30 15:42 采纳率: 0%
浏览 0

Mutexes and RwLocks being used where concurrent datastructures will work better

As it currently stands the Mutex/RwLock pattern is used a lot particularly with the cache. In large scale highly concurrent scenarios concurrent datastructures like chashmap and transactional memory rbtrees should do better.

该提问来源于开源项目:serenity-rs/serenity

  • 写回答

13条回答 默认 最新

  • weixin_39915668 2020-11-30 15:42
    关注

    After performing multiple benchmarks and integration tests it seems like the ccl crate https://docs.rs/ccl/1.2.2/ccl/ is the best option. It also outperforms all other options by a mile. Might something to work towards on v0.7.x.

    评论

报告相同问题?