|
|
|
|
|
by oconnor663
298 days ago
|
|
Note that C++ coroutines use heap allocation to avoid the problems that Pin is solving, which is a pretty big carve-out from the "zero overhead principle" that C++ usually aims for. The long development time of async traits has also been related to Rust not heap allocating futures. Whether that performance+portability-vs-complexity tradeoff is worth it for any given project is, of course, a different question. |
|
In any event it's essentially a stack frame so it's not a failure of zero-overhead, the stack frame will need to be somewhere.