3 ms·
I thought I read somewhere that Gor's coroutines could combine allocations as a compiler optimization in some cases. In particular this seems like it would be u
by jstarks 10y ago
I thought I read somewhere that Gor's coroutines could combine allocations as a compiler optimization in some cases. In particular this seems like it would be useful when the compiler can statically recognize deep, unconditional branching.
I can't find a link for that right now, though. Do you know anything about this?
- jevinskie 10y agoI asked Gor if you can use LLVM's coroutines without a runtime. He answered in the affirmative (subject to some constraints), which I take as evidence, along with his presentations, that these optimizations do indeed take place. https://www.reddit.com/r/cpp/comments/3p3uva/cppcon_2015_gor_nishanov_c_coroutines_a_negative/cwaocpe/?context=3 https://www.reddit.com/r/cpp/comments/3p3uva/cppcon_2015_gor...