Performance

Generators are pretty new to browsers, and given the extra work to maintain and resume a function, it will present some performance gaps. All the work of Synk is to wake up and run a generator while the specified asynchronous event completes.

For this reason, we do not recommend to use Synk in applications where performance is essential, like games or web servers.

The performance problem occurs only in the Synk functions. The rest of the code should behave normally. However, keep in mind that Javascript is single-threaded. In other words, the delay when calling a generator can delay other tasks in the same thread (other functions, intervals and animation frames.

 

— Updated in 2016.