2 ms·
There's so so much goodness available from tapping vm's as such, as virtual machines that we might do cool checkpoint/restore off on. Java has had some similar
by jauntywundrkind 2y ago
There's so so much goodness available from tapping vm's as such, as virtual machines that we might do cool checkpoint/restore off on.
Java has had some similar abilities to rebuild the pre-compiled stdlib with whatever else you want already included. So, each Java instance both boots faster & has less overhead. Forgetting the name though! Node has options too! https://nodejs.org/api/cli.html#--build-snapshot https://nodejs.org/api/cli.html#--build-snapshot
- Skinney 2y agoProblem with Node is that the snapshot functionality has several severe limitations. Copy pasted from NodeJS docs: --- Currently the support for run-time snapshot is experimental in that: 1. User-land modules are not yet supported in the snapshot, so only one single file can be snapshotted. Users can bundle their applications into a single script with their bundler of choice before building a snapshot, however. 2. Only a subset of the built-in modules work in the snapshot, though the Node.js core test suite checks that a few fairly complex applications can be snapshotted. Support for more modules are being added. If any crashes or buggy behaviors occur when building a snapshot, please file a report in the Node.js issue tracker and link to it in the tracking issue for user-land snapshots. --- (1) is fine as you can use a bundler to work around it. (2) can't, as far as I know, be worked around.