Iroh @iroh.computer · Nov 15

#Rust #tokio PSA everyone: ⚠️ Make sure to consume your tokio::task::JoinSet results using join_next! You can see the memory use drop on a node handling ~5000 concurrent websocket connections using ~50-100kB RAM per connection. I think it's safe to say it could handle *quite* a bunch more now :)

11 likes 1 replies

?

Replies

Iroh · Nov 15

The cool thing is: This is not even the end of the story! We also still have some non-deployed changes upcoming that remove some redundant spawn_blocking calls done on each request.