by 13of40 · 9y ago · 0 comments
In addition to this, browsers do lazy parsing. They do not fully parse the bodies of functions until the functions are executed.
This is something that would change with the Binary AST, hence allowing much lazier parsing.
https://groups.google.com/forum/#!topic/mozilla.dev.platform...
Note, however, that caching bytecode solves a different problem. Caching bytecode is great for the second+ load of a website. Making initial parsing faster is great for the first load of a website since its latest update. If you consider that Facebook updates its front-end once per hour, for instance, that's a lot for some (not all) websites.
Also, the size improvements may come in useful for applications written in, say, Cordova/PhoneGap.