4 ms·
Chrome now caches compiled code: https://v8project.blogspot.ca/2015/07/code-caching.html https://v8project.blogspot.ca/2015/07/code-caching.html In addition to
by tachyonbeam 9y ago
Chrome now caches compiled code: https://v8project.blogspot.ca/2015/07/code-caching.html https://v8project.blogspot.ca/2015/07/code-caching.html
In addition to this, browsers do lazy parsing. They do not fully parse the bodies of functions until the functions are executed.
- Yoric 9y agoNote that "lazy parsing" means "do most of the parsing, just don't store the result". That's a consequence of the specifications of JavaScript that require all syntax errors to be thrown as early as possible. This is something that would change with the Binary AST, hence allowing much lazier parsing.