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:
Or read this on Hacker News