From e40b24d2cecd594313f1d0a9f2e290c5254e792b Mon Sep 17 00:00:00 2001 From: Rob Swindell Date: Fri, 20 Nov 2020 00:25:56 -0800 Subject: [PATCH] Increase JavaScriptMaxBytes from 8M to 160M 160M is the value used by the Mozilla/SpiderMonkey JSShell project, so I'm rationalizing that as an acceptable default. Of course, it would be good to optimize memory usage in JS scripts, so we'll work on that too. So, if you're a JS developer, best to play with lower values here to see if/where you're being potentially wasteful in your memory usage, but most sysops just want everything "to work". --- ctrl/sbbs.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctrl/sbbs.ini b/ctrl/sbbs.ini index d0d1d75cb..c4ebcbc2b 100644 --- a/ctrl/sbbs.ini +++ b/ctrl/sbbs.ini @@ -36,7 +36,7 @@ ; JavaScript values can be specified here *and* in server-specific sections ; JavaScript values specified in server-specific sections will over-ride the global values ; Maximum allocation of memory per JS run-time: - JavaScriptMaxBytes = 8M + JavaScriptMaxBytes = 160M ; Maximum stack size per JS context: JavaScriptContextStack = 16K ; Maximum number of ticks (100ms) before auto-termination of script: -- GitLab