Skip to content

Commit

Permalink
Chore: add v8-compile-cache to speed up instantiation time (#11921)
Browse files Browse the repository at this point in the history
* 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 cc3885b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/eslint.js
Expand Up @@ -9,6 +9,9 @@

"use strict";

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

//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit cc3885b

Please sign in to comment.