2 ms·
This exact optimization has been implemented in C++ coroutines via the 'initial_suspend' coroutine traits hook. ...and those are stackless coroutines under AOT
by nly 6y ago
This exact optimization has been implemented in C++ coroutines via the 'initial_suspend' coroutine traits hook.
...and those are stackless coroutines under AOT compiled conditions, so it only saves a malloc.