Faster script loading with BinaryAST?
The performance of applications on the web platform is increasingly bottlenecked by startup (load) times due to large amounts of JavaScript code required for rich web experiences. Cold start times are particularly important as popular websites regularly release new code, and browsers move to separate caches for different domains. Parsing and compilation of JavaScript could become the dominant factor in cold starts as networks become faster. BinaryAST is a proposed over-the-wire format for JavaScript that aims to speed up parsing while keeping the semantics of the original JavaScript intact. It does so by using an efficient binary representation for code and data structures, as well as by storing and providing extra information to guide the parser ahead of time. BinaryAST can dramatically improve initial loading times by allowing only critical code necessary for start-up to be parsed, completely skipping over unused bits.
Company
Cloudflare
Date published
May 17, 2019
Author(s)
Ingvar Stepanyan
Word count
3491
Hacker News points
None found.
Language
English