Some musings on the async ecosystem and compatibility between async-std and tokio... 1/15
Sorry if this is a silly question, but I wonder: what is the benefit to using async in heim? Heim relies on syscalls and filesystem operations a lot, which run on the blocking thread pool anyway. Such operations incur the cost of spawn_blocking() + some synchronization.
-
-
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
- 2 more replies
New conversation -
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.