Try new recursion limit formula (#1638)

This commit is contained in:
Hood Chatham 2021-06-18 14:45:43 -07:00 committed by GitHub
parent f9a68998e5
commit 5318cd5a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -147,10 +147,7 @@ function fixRecursionLimit() {
recurse(); recurse();
} catch (err) {} } catch (err) {}
let recursionLimit = depth / 60; let recursionLimit = Math.min(depth / 50, 400);
if (recursionLimit > 1000) {
recursionLimit = 1000;
}
Module.runPythonSimple( Module.runPythonSimple(
`import sys; sys.setrecursionlimit(int(${recursionLimit}))` `import sys; sys.setrecursionlimit(int(${recursionLimit}))`
); );