编译缓存的局限性


¥Limitations of the compile cache

目前,当使用带有 V8 JavaScript 代码覆盖率 的编译缓存时,V8 收集的覆盖率在从代码缓存反序列化的函数中可能不太精确。建议在运行测试时关闭此功能以生成精确的覆盖范围。

¥Currently when using the compile cache with V8 JavaScript code coverage, the coverage being collected by V8 may be less precise in functions that are deserialized from the code cache. It's recommended to turn this off when running tests to generate precise coverage.

一个版本的 Node.js 生成的编译缓存不能被不同版本的 Node.js 重用。如果使用相同的基目录来持久化缓存,则不同版本的 Node.js 生成的缓存将单独存储,因此它们可以共存。

¥Compilation cache generated by one version of Node.js can not be reused by a different version of Node.js. Cache generated by different versions of Node.js will be stored separately if the same base directory is used to persist the cache, so they can co-exist.