Skip to content

Commit cc3885b

Browse files
authored
Chore: add v8-compile-cache to speed up instantiation time (#11921)
* Chore: add v8-compile-cache to speed up instantiation time 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.
1 parent d8f2688 commit cc3885b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/eslint.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
"use strict";
1111

12+
// to use V8's code cache to speed up instantiation time
13+
require("v8-compile-cache");
14+
1215
//------------------------------------------------------------------------------
1316
// Helpers
1417
//------------------------------------------------------------------------------

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"strip-ansi": "^5.2.0",
7979
"strip-json-comments": "^3.0.1",
8080
"table": "^5.2.3",
81-
"text-table": "^0.2.0"
81+
"text-table": "^0.2.0",
82+
"v8-compile-cache": "^2.0.3"
8283
},
8384
"devDependencies": {
8485
"@babel/core": "^7.4.3",

0 commit comments

Comments
 (0)