Get the latest tech news

Speeding up Electron apps by using V8 snapshots in the main process


Speeding up Electron apps by using V8 snapshots in the main process - RaisinTen/electron-snapshot-experiment

This experiment shows how you can use V8 snapshot to speed up the require() s for the main process of your Electron application by more than 80%! This includes usage of functionalities from the Node.js or Electron runtime that do not belong to the JS language - things like the require('http') builtin module, the global process object, etc. It is not possible to create an object of a class if the construction logic requires Node.js builtins to be present as those are not a part of the V8 snapshot:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Electron

Electron

Photo of main process

main process

Photo of Electron apps

Electron apps

Related news:

News photo

WhatsApp will soon discontinue its old Electron app for macOS

News photo

Photino: A lighter Electron

News photo

Making light 'feel' a magnetic field like an electron would