v8-compile-cache
v8-compile-cache copied to clipboard
Require hook for automatic V8 compile cache persistence
A very useful project, so widely used. With one _flawn_ - cache is stored only on the graceful project exit. I was trying to speed up the load times of...
The compile cache may cause Node to crash if it was generated from a Node build where `os.arch()` does not match. I experienced that recently with Node 16 on an...
Is there a way to use v8-compile-cache as a library? My use-case is to programmatically install the compile cache, then uninstall it, *and* for other code in node to be...
Add express.js to the bench suite Add script run-perf-stat to produce CPU instructions Add CPU instructions for with and without cache
Trying to use a dynamic `import()` statement will fail with: ```log TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified. ``` The error originates from an insufficient options object passed...
**at require (v8-compile-cache/v8-compile-cache.js:161:20) { code: 'MODULE_NOT_FOUND'** The module `v8-compile-cache` is present in the `node_modules` folder and reinstall the package also did not help. This problem appeared on the server after...
Very interesting project. I think you can benefit from some of the newer features we added to code caching in V8. The current API compiles the top-level code and immediately...
Fixes the problem listed here: https://github.com/webpack/webpack-cli/issues/296
I'm trying to add telemetry and logging around if the cache has been used. This flag will be very helpful in determining if there is an issue with the cache.
`save()` currently just throw the [exception ](https://github.com/zertosh/v8-compile-cache/blob/7182bd0e30ab6f6421365cee0a0c4a8679e9eb7c/v8-compile-cache.js#L90) if save were to fail. I'm wondering if we could have a callback hook so we could handle the exception by sending telemetry...