3 ms·
JSC's async-await is constructed on the generator's mechanism so that high performance generator is critical for all the web code using async functions. Not sur
by yusukesuzuki 7y ago
JSC's async-await is constructed on the generator's mechanism so that high performance generator is critical for all the web code using async functions. Not sure how SpiderMonkey is doing.
- littlestymaar 7y agoAs the gp said, async/await is rarely used in hot loops, so it would probably never get jit-ed in a real webpage.
- yusukesuzuki 7y agoI don’t agree given that async iterator can be iterated. But I’m ok if SpiderMonkey folks thinks so ;)
- littlestymaar 7y agoAsync is mainly useful for asynchronous operations, like network requests if file system access. If used in this context, the loop cannot be "hot"… Maybe there are people (ab)using the async stuf do do something else, but at least it's not really common.
- pcwalton 7y agoI'm sure SM will get around to jitting that stuff at some point. All I'm saying is that Baseline Interpreter gives users bigger wins right now.