Skip to content
Permalink
Browse files

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.
  • Loading branch information...
aladdin-add committed Jul 3, 2019
1 parent d8f2688 commit cc3885b028e29ebc575c900f43af81cb0dabffb6
Showing with 5 additions and 1 deletion.
  1. +3 −0 bin/eslint.js
  2. +2 −1 package.json
@@ -9,6 +9,9 @@

"use strict";

// to use V8's code cache to speed up instantiation time
require("v8-compile-cache");

//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
@@ -78,7 +78,8 @@
"strip-ansi": "^5.2.0",
"strip-json-comments": "^3.0.1",
"table": "^5.2.3",
"text-table": "^0.2.0"
"text-table": "^0.2.0",
"v8-compile-cache": "^2.0.3"
},
"devDependencies": {
"@babel/core": "^7.4.3",

0 comments on commit cc3885b

Please sign in to comment.
You can’t perform that action at this time.