Skip to content

Comment on C++ Coroutine Theory (2017)

Comments

Does anybody know if there has been some research and experimentation with inlining? It is probably the most important part of an optimizing compiler, and coroutines would seem to make that very difficult or impossible.

I'd recommend looking at the work the LLVM team have done on this. [0] for example and there is a Youtube video from one of the LLVM confs if I recall correctly.

In a nutshell they are still researching this but their general approach is to split the coroutine up and devirtualise/inline the parts where they can.

[0] https://llvm.org/devmtg/2016-11/Slides/Nishanov-LLVMCoroutin...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.