Qdvys9asrycur8cpsvi3
SkillsCast

Code Caching for JS Developers

20th September 2018 in London at CodeNode

This SkillsCast was filmed at Code Caching for JS Developers

Don't miss out on the chance to learn about code caching from Leszek Świrski, hacker on V8, Google's high performance open source JavaScript engine!

Everybody knows that the fastest way to do something is to not do it at all, and V8 is no exception. After all, why parse and compile JavaScript that we’ve already parsed and compiled before?

But the caching behaviour of a JavaScript engine can be a bit of a mystery. What even gets cached, and why? Who decides when it is cached and where is it stored — and how many caches even are there? What if I use a service worker?

This talk will demystify code caching in V8, describing how code caching interacts with the disk, how in-memory code is re-used, how compiled scripts are serialized, and most importantly, how JS developers can benefit from these optimizations.

Follow Leszek on Twitter

Interested in finding out more about V8 JavaScript Engine?

YOU MAY ALSO LIKE:

Thanks to our sponsors

Code Caching for JS Developers

Leszek Świrski

Leszek Swirski has been a software engineer at Google for three years, first in California, now in London, working on the performance of the Android camera and the V8 Javascript engine. Before joining Google, Leszek did a PhD in the University of Cambridge, researching gaze estimation (a.k.a. eye tracking) on stereoscopic (a.k.a. “3D”) displays.

SkillsCast

Don't miss out on the chance to learn about code caching from Leszek Świrski, hacker on V8, Google's high performance open source JavaScript engine!

Everybody knows that the fastest way to do something is to not do it at all, and V8 is no exception. After all, why parse and compile JavaScript that we’ve already parsed and compiled before?

But the caching behaviour of a JavaScript engine can be a bit of a mystery. What even gets cached, and why? Who decides when it is cached and where is it stored — and how many caches even are there? What if I use a service worker?

This talk will demystify code caching in V8, describing how code caching interacts with the disk, how in-memory code is re-used, how compiled scripts are serialized, and most importantly, how JS developers can benefit from these optimizations.

Follow Leszek on Twitter

Interested in finding out more about V8 JavaScript Engine?

YOU MAY ALSO LIKE:

Thanks to our sponsors

About the Speaker

Code Caching for JS Developers

Leszek Świrski

Leszek Swirski has been a software engineer at Google for three years, first in California, now in London, working on the performance of the Android camera and the V8 Javascript engine. Before joining Google, Leszek did a PhD in the University of Cambridge, researching gaze estimation (a.k.a. eye tracking) on stereoscopic (a.k.a. “3D”) displays.