Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Performance: V8 snapshots #381

Open
bryphe opened this issue Apr 19, 2017 · 3 comments
Open

Performance: V8 snapshots #381

bryphe opened this issue Apr 19, 2017 · 3 comments

Comments

@bryphe
Copy link
Member

bryphe commented Apr 19, 2017

Atom had an interesting strategy for improving startup performance in their blog post here:
http://blog.atom.io/2017/04/18/improving-startup-time.html

They are leveraging V8 snapshots to output a JS heap. This saves all the parsing and processing of JS, which is non-trivial as the bundle.js for this project gets larger.

There are some restrictions (V8 snapshots run in a bare V8 context), so it's important to have solid testing to ensure we aren't breaking anything in these cases.

@bryphe
Copy link
Member Author

bryphe commented Apr 19, 2017

One possible avenue to help with #355, but improving the real startup performance.

@bryphe bryphe changed the title Performance: Evaluate V8 snapshots Performance: V8 snapshots Apr 19, 2017
@bryphe bryphe added this to the 0.5 milestone Apr 27, 2017
@bryphe
Copy link
Member Author

bryphe commented Dec 18, 2017

One suggestion that @bruchmann made on #1123 was leveraging electron-link to accomplish this. Would be interesting to see how straightforward this is to plugin to our infra/build.

@bryphe
Copy link
Member Author

bryphe commented Mar 7, 2018

mksnapshot seems to be used as well

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant