|
|
|
|
|
by kixunil
3356 days ago
|
|
> It doesn't use segmented stacks so it doesn't achieve the M:N performance of Go Actually, if you use Tokio or similar approach, you achieve better performance than Go (no need to re-allocate stacks) while code is still quite readable and boilerplate-free. |
|
However, futures are certainly not boilerplate-free. They destroy your ability to use native control flow the way you can with threads (M:N or 1:1). You can get some of that back with async/await, but Rust doesn't have that and it's still not boilerplate-free.