Coroutine

Coroutine http://coolshell.cn/articles/10975.html http://www.cnblogs.com/youxin/p/3624089.html

http://blog.csdn.net/wuhenyouyuyouyu/article/details/52709395

There is a known almost discussion, is also very good

I think codedump say, in the phrase.

What are the benefits of coroutine? (Know almost)

Asynchronous callback mode, the code has been split, not so good to write, not easy to understand, use coroutines can synchronize the wording, and productivity has been the release of large column  Coroutine , the code becomes elegant and charming.

Making coroutines fast article is rethinkdb switching to the coroutine embodiment, for optimal performance, there can be individual comparison chart. Even optimized for coroutine scheduling, but the performance is decreased. But is not it still continue to optimize the performance increase it? After all consumed by switching threads is larger than the switching coroutine.

coroutine and goroutine side of the article talked about some of the concepts and universal cross-platform implementation method does not involve the compilation, but I feel if you want to get a performance boost or method of compilation, direct manipulation register will be much better

Guess you like

Origin www.cnblogs.com/liuzhongrong/p/11961084.html