提交 876c35b8 编写于 作者: J Johannes Rieken

use --nolazy when starting renderer processes, #25019

上级 485bd40c
...@@ -213,7 +213,12 @@ global.getOpenUrls = function () { ...@@ -213,7 +213,12 @@ global.getOpenUrls = function () {
// node/v8 cached data. // node/v8 cached data.
var nodeCachedDataDir = getNodeCachedDataDir().then(function (value) { var nodeCachedDataDir = getNodeCachedDataDir().then(function (value) {
if (value) { if (value) {
// store the data directory
process.env['VSCODE_NODE_CACHED_DATA_DIR_' + process.pid] = value; process.env['VSCODE_NODE_CACHED_DATA_DIR_' + process.pid] = value;
// tell v8 to not be lazy when parsing JavaScript. Generally this makes startup slower
// but because we generate cached data it makes subsequent startups much faster
app.commandLine.appendSwitch('--js-flags', '--nolazy');
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册