Discussion:
[webkit-help] [JavaScriptCore] Load JSContext from snapshot
Lukas Kollmer
2017-05-31 09:57:15 UTC
Permalink
Hi,

Google's v8 JavaScript engine supports snapshots, which are basically a way
to load a prepared context from a file, instead of creating everything from
scratch.
The obvious advantage of this approach are drastically reduced setup times
when creating a new context. (Google's blogpost claims they managed to
reduce the time it takes to create a new context from ~40 ms to ~2 ms on
desktop and from ~270 ms to just ~10 ms on a mobile phone.)

Does JavaScriptCore support snapshots or a similar feature?

Google's blogpost:
https://v8project.blogspot.de/2015/09/custom-startup-snapshots.html
--
Lukas Kollmer
***@gmail.com
Loading...