Re:Show HN: Whirlwind – Async concurrent hashmap for Rust
by jkelleyrtp on Tuesday November 05, 2024 @04:32PM
(#42055363)
Tokio has a task budget that will cap at 32 or 256 polls of the same task before switching to another task. So, yes a spinlock, but not likely to deadlock.
[ Parent
| on HN ]
Re:Show HN: Whirlwind – Async concurrent hashmap for Rust
by willothy on Tuesday November 05, 2024 @04:36PM
(#42055391)
Yeah, after looking into this more I think this was a big oversight on my part. Working on a (hopefully) better way of doing this right now - I'm thinking per-shard waker queues and only falling back to spinlocking like this if the queues are full.