forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jsscripting] Improve performance & reduce memory usage (openhab#14113)
* [jsscripting] Share org.graalvm.polyglot.Engine across all OpenhabGraalJSScriptEngine instances See oracle/graaljs#121 (comment), it is not required to have one engine per GraalJSScriptEngine. This might improve performance a bit on less powerful systems (Raspberry Pi) and decreases heap usage: With 5 GraalJS UI scripts, heap usage is now below 100 MB. Before this change, it was over 100 MB. * [jsscripting] Extend debug logging * [jsscripting] Cache `@jsscripting-globals.js` across all engines Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
- Loading branch information
1 parent
e1d846d
commit 872c726
Showing
1 changed file
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters