Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] ScriptAPI: Allow devs to set flag for more aggressive optimization #195

Closed
SenkJu opened this issue Jun 13, 2020 · 1 comment
Closed
Milestone

Comments

@SenkJu
Copy link
Contributor

SenkJu commented Jun 13, 2020

Nashorn has a flag that optimizes scripts much more aggressively. This can significantly improve performance, but some scripts may not work properly. Also, the time needed to compile the script increases dramatically.
For this reason, script developers should be able to set the flag manually, as long as it works with the script.

Note:

NashornScriptEngineFactory().getScriptEngine("--optimistic-types=true")
@SenkJu SenkJu closed this as completed in bb112eb Jun 15, 2020
@SenkJu
Copy link
Contributor Author

SenkJu commented Jun 15, 2020

Custom flags can be passed like this:

/// engine_flags=-ot=true,--language=es6

List of all available flags can be found using

> jjs -xhelp

@1zun4secondary 1zun4secondary transferred this issue from CCBlueX/Old-LiquidBounce-Issues Sep 24, 2020
@1zun4secondary 1zun4secondary added this to the b73 milestone Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants