3 ms·
There is an alternative here with coroutines. There is no fundamental reason to take on the function coloring problem. If one was to benchmark cpp coroutines v
by lumost 4y ago
There is an alternative here with coroutines. There is no fundamental reason to take on the function coloring problem.
If one was to benchmark cpp coroutines vs rust async would the performance difference ever pay off?
- AndrewGaspar 4y agoC++ coroutines[0] are also "function coloring", unless I'm missing something? [0] https://en.cppreference.com/w/cpp/language/coroutines https://en.cppreference.com/w/cpp/language/coroutines
- thayne 4y agoRust async functions are basically coroutines that suspend when you use await. Except that you can't return intermediate results (although once Generators are stabilized, that should resolve that use case).