Previously, I wrote about using coroutines in RethinkDB. Coroutines are a nice alternative to callbacks because they are easier to program in, and they are a nice alternative to threads because of their greater performance. But how fast are they? Just using an off-the-shelf library like libcoroutine isn’t as fast as you might think. The graph below shows the huge performance degradation of a naive
![Making coroutines fast - RethinkDB](https://cdn-ak-scissors.b.st-hatena.com/image/square/80b37aa964b3f5b5151ed272cd4c4ddf9ab3db2d/height=288;version=1;width=512/https%3A%2F%2Frethinkdb.com%2Fassets%2Fimages%2Fposts%2F2010-12-23-making-coroutines-fast-1.png)