mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 06:12:19 +00:00
added some more flags to optimize runtimes
This commit is contained in:
1 parent
44b3ddedd8
commit
f2c7121912
1 file changed
+5
-1
@@ -377,7 +377,11 @@ public class ScriptController {
|
||||
);
|
||||
} else {
|
||||
Method getEngineMethod = factoryClass.getMethod("getScriptEngine", String[].class);
|
||||
String[] args = new String[] { "--language=es6" };
|
||||
String[] args = new String[] {
|
||||
"--language=es6",
|
||||
"--optimistic-types=true",
|
||||
"--lazy-parse=true"
|
||||
};
|
||||
engine = (ScriptEngine) getEngineMethod.invoke(factory, (Object) args);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user