Some musings on the async ecosystem and compatibility between async-std and tokio... 1/15
What if heim was a sync library and users of async Rust simply ran heim on a dedicated thread, or inside spawn_blocking() calls? My hunch is that might have comparable performance, or maybe even better. But perhaps I'm missing something? What is your opinion on this?
-
-
Reasonable question :) I'm also thinking about integrating some network features too, which should somewhat justify that decision. Obivously, I am thinking about "downgrading" back to the usual sync code, but I had not decided yet on that matter
-
Over time I've become somewhat of an "async skeptic". Threads are really not as expensive as is commonly thought. A lot of async code isn't async - it just does stuff on to the blocking pool. So really only networking is actually fast when async and worthwhile being async, IMO...
- 1 more reply
New conversation -
-
-
There are some extra thoughts of mine on that matter: https://heim-rs.github.io/book/async/index.html …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.