Gathering detailed insights and metrics for @akepinski/v8-compile-cache
Gathering detailed insights and metrics for @akepinski/v8-compile-cache
Gathering detailed insights and metrics for @akepinski/v8-compile-cache
Gathering detailed insights and metrics for @akepinski/v8-compile-cache
Require hook for automatic V8 compile cache persistence
npm install @akepinski/v8-compile-cache
Typescript
Module System
Node Version
NPM Version
JavaScript (97.13%)
Shell (2.87%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
738 Stars
107 Commits
40 Forks
10 Watchers
1 Branches
9 Contributors
Updated on Jul 04, 2025
Latest Version
2.0.3
Package Id
@akepinski/v8-compile-cache@2.0.3
Unpacked Size
15.51 kB
Size
5.53 kB
File Count
5
NPM Version
6.9.0
Node Version
12.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
v8-compile-cache
attaches a require
hook to use V8's code cache to speed up instantiation time. The "code cache" is the work of parsing and compiling done by V8.
The ability to tap into V8 to produce/consume this cache was introduced in Node v5.7.0.
1$ npm install --save v8-compile-cache
1require('v8-compile-cache');
Requiring v8-compile-cache
in Node <5.7.0 is a noop – but you need at least Node 4.0.0 to support the ES2015 syntax used by v8-compile-cache
.
Set the environment variable DISABLE_V8_COMPILE_CACHE=1
to disable the cache.
The caches are stored in $TMP/v8-compile-cache/V8_VERSION
, where there are .BLOB
and .MAP
files corresponding to the entry module that required v8-compile-cache
. The cache is entry module specific because it is faster to load the entire code cache into memory at once, than it is to read it from disk on a file-by-file basis.
See https://github.com/zertosh/v8-compile-cache/tree/master/bench.
Load Times:
Module | Without Cache | With Cache |
---|---|---|
babel-core | 218ms | 185ms |
yarn | 153ms | 113ms |
yarn (bundled) | 228ms | 105ms |
^ Includes the overhead of loading the cache itself.
FileSystemBlobStore
and NativeCompileCache
are based on Atom's implementation of their v8 compile cache:
mkdirpSync
is based on:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More