{"by":"willothy","descendants":54,"id":42053747,"kids":[42054347,42054313,42054331,42055015,42054415,42054856,42054146,42054362,42054916,42059249,42056087,42056096],"score":140,"text":"Hey HN, this is Will and David from Fortress (<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41426998\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41426998</a>).<p>We use a lot of async Rust internally, and created this library out of a need for an async-aware concurrent hashmap since there weren’t many available in the Rust ecosystem.<p>Whirlwind is a sharded HashMap with a fully asynchronous API. Just as dashmap is a replacement for std::sync::RwLock&lt;HashMap&gt;, whirlwind aims to be a replacement for tokio::sync::RwLock&lt;HashMap&gt;. It has a similar design and performance characteristics to dashmap, but seems to perform better in read-heavy workloads with tokio&#x27;s green threading.<p>Benchmarks are in the readme! We used an asyncified version of dashmap&#x27;s benchmark suite. The project is in a pretty early stage and I&#x27;m sure there are flaws, but I&#x27;m pretty happy with the performance.<p>There is some unsafe involved, but we run Miri in ci to (hopefully) catch undefined behavior well before it&#x27;s in an actual release.<p>We&#x27;d appreciate any feedback! Thanks in advance :)","time":1730829738,"title":"Show HN: Whirlwind – Async concurrent hashmap for Rust","type":"story","url":"https://github.com/fortress-build/whirlwind"}