On Tue, Nov 24, 2015, at 11:18 AM, Kevin Grandon wrote: > Why not use async functions and await instead? Babel and the stage-2 > definitions makes this really easy. The transition should be easier > because the build system is already synchronous, and it seems more > fitting for a build system than promises.
Async/await is pretty great, but it'd be helpful if someone could chime in with speed experiences on using babel in whole-program use. Specifically, before "let" was recently allowed in workers, we were using it to transpile the email backend file-by-file in (single-file mode) and it was realllly slow. Since each invocation is single-shot there was no doubt some non-trivial overhead, but we're talking more than one second per file on a fairly high end machine with SSD. If that's indicative of real-world experience, I think we'd be better off just using ES2015 generators and a driver like https://github.com/tj/co (that's what we've been using in email) in the interest of minimizing build time. (Every second matters, and I'm not sure we want the excitement/nightmares of having a build tool that also has to build and cache itself to mitigate runtime performance issues, etc.) Andrew
_______________________________________________ dev-fxos mailing list [email protected] https://lists.mozilla.org/listinfo/dev-fxos

