Skip to content

Commit

Permalink
v8-compile-cache for (slightly) faster load times
Browse files Browse the repository at this point in the history
  • Loading branch information
djtech-dev committed Jul 2, 2022
1 parent aeb937b commit b22a368
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/default.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("v8-compile-cache");

window.globalArgs = {}

process.argv.forEach(function (arg) {
Expand Down
2 changes: 2 additions & 0 deletions main/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("v8-compile-cache");

const electron = require('electron')
const fs = require('fs')
const path = require('path')
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"pdfjs-dist": "2.12.313",
"regedit": "^3.0.3",
"stemmer": "^1.0.5",
"string_score": "^0.1.22"
"string_score": "^0.1.22",
"v8-compile-cache": "^2.3.0"
},
"devDependencies": {
"archiver": "^4.0.1",
Expand Down

0 comments on commit b22a368

Please sign in to comment.