7 ms·
> The main advantage of the M:N model, compared to the 1:1 model, is the memory usage, because each goroutine starts with a small stack (a few kB). Rust's asyn
by majewsky 7y ago
> The main advantage of the M:N model, compared to the 1:1 model, is the memory usage, because each goroutine starts with a small stack (a few kB).
Rust's async-fns compile into state machines, so they only allocate exactly the number of bytes that they need.
- ngrilly 7y agoI know. I was writing about the 1:1 model without async/await :)