Reducing Allocation & GC Pressure When Executing Cached AST in Jint #2400
Unanswered
koobooteam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We’ve been using Jint extensively and are very satisfied with its flexibility and design.
Our current execution pipeline is:
This avoids repeated parsing costs, but during runtime we’re still observing:
Noticeable memory growth under load
Frequent GC cycles
We see many objects in memory like Jint.Native.JsNumber.
We’d like to better understand the intended performance model of Jint and whether we’re missing a more optimal pattern. Specifically:
Is AST reuse alone sufficient, or are there additional layers (e.g., compiled/bytecode caching) we should leverage?
Does Engine reuse vs recreation significantly impact allocation behavior?
We’re aiming to run a high-throughput scenario (many script executions per second), so minimizing allocation rate is critical.
All reactions