mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
Decreased master load time by 30%, web postJSON now returns a promise
This commit is contained in:
1 parent
ea8f819bd5
commit
1b6b0abaeb
4 files changed
+34
-20
No files matched your search
@@ -20,6 +20,10 @@ 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');
|
||||
|
||||
// constants
|
||||
const masterModFolder = "./database/masterMods/";
|
||||
const config = require('./config');
|
||||
@@ -46,8 +50,8 @@ const https = require("https");
|
||||
const jwt = require('jsonwebtoken');
|
||||
const bcrypt = require('bcryptjs');
|
||||
|
||||
var crypto = require('crypto');
|
||||
var base64url = require('base64url');
|
||||
const crypto = require('crypto');
|
||||
const base64url = require('base64url');
|
||||
|
||||
/** Sync */
|
||||
function randomStringAsBase64Url(size) {
|
||||
|
||||
Reference in new issue
Block a user