Understanding future performance profiles of Generators

Jason Kuhrt jasonkuhrt at me.com
Fri Apr 17 01:40:59 UTC 2015


Can anyone point me to good literature on projections or thoughts on future performance of Generators in JavaScript? I would like to develop heuristics and intuition about their use knowing that anything that is absolutely critical should of course be benchmarked by me, but also wanting enough knowledge to operate confidently in my choice of tool and techniques. For context I am concerned about the full stack so cannot focus on a  single engine (V8 etc.).

Say for example that I wanted to write in a functional lazy-evaluation style; I want a sense within the order-of-magnitude at least for the general trade-offs I am making.

I don’t feel like justifying  why I’m curious about this (as I seemed to have had to do on the Node IRC channel, sigh). So please just answer if you have constructive information to add. I understand this space is moving fast with patches that are increasing performance by orders of magnitude (e.g. https://code.google.com/p/v8/issues/detail?id=3928 <https://code.google.com/p/v8/issues/detail?id=3928>) so I’m more concerned with the longer term, 12-24+ months, how close will Generators get to regular functions in perf, etc.

Thanks so much,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150416/6ca5a120/attachment.html>


More information about the es-discuss mailing list