C# first class continuation via C++ interop or some other way?

前端 未结 5 2035
半阙折子戏
半阙折子戏 2021-02-02 08:11

We have a very high performance multitasking, near real-time C# application. This performance was achieved primarily by implementing cooperative multitasking in-house with a ho

5条回答
  •  悲&欢浪女
    2021-02-02 08:49

    Nope, not going to work. C# (and even IL) is too complex language to perform such transformations (CPS) in a general way. The best you can get is what C# 5 will offer. That said, you will probably not be able to break/resume with higher order loops/iterations, which is really want you want from general purpose reifiable continuations.

提交回复
热议问题