mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script (#440)
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
This commit is contained in:
@@ -103,9 +103,12 @@ test.each([
|
||||
alerted,
|
||||
new Promise((resolve) => {
|
||||
eventDelete = WorkerScriptStartStopEventEmitter.subscribe(() => {
|
||||
if (!server.runningScripts.includes(runningScript)) {
|
||||
resolve(null);
|
||||
for (const byPid of server.runningScriptMap.values()) {
|
||||
for (const rs of byPid.values()) {
|
||||
if (rs === runningScript) return;
|
||||
}
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user