Skip to content

Where and how best to store id? #1100

Answered by lahma
ghost asked this question in Q&A
Mar 6, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I'm probably not able to give any direct answers, especially as I haven't done any Unity development. You might want to ping the gitter chat room too with this discussion topic.

I think performance in this case is something that you need to measure. Make sure you use the v3 beta, it's much faster. Having multiple engines should be quite efficient as memory usage has been quite optimized, also if you have static script, you should compile it only once using JavaScriptParser and then pass the same Script instance to engine.

Jint will soon support dynamic import (but unfortunately it's a bit cumbersome to use via Promise while there's no await support).

You could also create a wrapper type t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
2 replies
@lahma
Comment options

lahma Mar 7, 2022
Collaborator

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant