Rhino interpret mode support & misc by Sartharon · Pull Request #3722 · PhantomBot/PhantomBot · GitHub
Skip to content

Rhino interpret mode support & misc#3722

Merged
gmt2001 merged 9 commits into
PhantomBot:masterfrom
Sartharon:rhino
May 17, 2026
Merged

Rhino interpret mode support & misc#3722
gmt2001 merged 9 commits into
PhantomBot:masterfrom
Sartharon:rhino

Conversation

@Sartharon

Copy link
Copy Markdown
Contributor
  • Update Rhino to 1.9.1
  • Add botlogin.txt property rhinointerpretmode to enable Rhino's interpret mode avoiding ByteCode compilation. This allows the user to either choose
    • true: the memory efficiency of JIT interpreted scripts
    • false: the compiled bytecode's performance
      • rhinointerpretmode defaults to false
  • Strip the Script class of any unneeded variables and code.
    • Global variables and base scope is build in the RhinoRuntime upon initialisation
    • Context is not worth saving as it's volatile and thread-local. enterContext() handles proper context attaching

Comment thread source/tv/phantombot/script/RhinoRuntime.java
@gmt2001 gmt2001 merged commit 3f8ae58 into PhantomBot:master May 17, 2026
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants