Skip to content
Discussion options

You must be logged in to vote

Given that your js code snippet is trivial, I suspect that you're measuring mostly Context initialization overhead and thus not seeing the benefits of code caching. Context creation isn't free, but usually dominated by the JS code.
If your JS code is very short-running and you don't need isolated contexts, I would suggest to consider reusing thread-local contexts.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chumer
Comment options

chumer Aug 25, 2025
Collaborator

@and-za
Comment options

@woess
Comment options

woess Sep 5, 2025
Collaborator

@and-za
Comment options

Answer selected by and-za
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants