Author of Kneden here. If generators are avaiable, you should probably indeed be using this.
If they are not though, Kneden will generate code that's probably more readable and smaller (no polyfill except for a Promise implementation).
If they are not though, Kneden will generate code that's probably more readable and smaller (no polyfill except for a Promise implementation).
I like async/await a lot, but I'm concerned at how much all of this JS machinery costs in terms of perf, especially compared to writing callback chains.
That said, it might be a good idea to hand-optimize that single hot loop, typing the Promise chain out yourself, or even using callbacks directly. It's impossible to beat that using an automated solution like this.
Pragmatic and it works, but the code isn't pretty. Which is why Kneden was made.