From ca0281ae5862c311da7357b999c2c42584473805 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 3 Aug 2019 12:45:06 +0200 Subject: [PATCH] Remove pointless micro-optimization This saved 30ms of the startup on my machine. Even if it saved a second it's still pretty pointless as we're not depending on the master server startup being super fast. --- .gitignore | 2 -- master.js | 4 ---- package.json | 1 - 3 files changed, 7 deletions(-) diff --git a/.gitignore b/.gitignore index 043bbd5c..50b1c745 100644 --- a/.gitignore +++ b/.gitignore @@ -62,7 +62,5 @@ sharedPlugins/scenario_loader/scenarios # File used for marking plugins as disabled sharedPlugins/*/DISABLED -\.cache-require-paths\.json - # IDE .idea/ diff --git a/master.js b/master.js index 02f3e36f..db1ef173 100644 --- a/master.js +++ b/master.js @@ -26,10 +26,6 @@ process.on('unhandledRejection', r => console.log(r)); // configgy stuff debug = false; -// reduces loadtime from 1700 ms to 1200 ms on my i3 + SSD -// tested by logging Date.now() here and when the webserver started listening -require('cache-require-paths'); - // argument parsing const args = require('minimist')(process.argv.slice(2)); diff --git a/package.json b/package.json index 20eddedd..baa0a308 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "bcrypt-promise": "^2.0.0", "bcryptjs": "^2.4.3", "body-parser": "^1.18.2", - "cache-require-paths": "^0.3.0", "cli": "^1.0.1", "cli-interact": "^0.1.9", "codecov": "^3.0.1",