Open bakkar1989 opened 3 years ago
There is quite some lookup and mapping done when the whole instance is scaffolded. Depending on your .NET runtime this may take a while.
So its expected to eat memory and to take a while. I guess it could be reduced a bit, but not by much as some of the boundary conditions (managed code, dynamic integration, interpreter) cannot be taken away.
I am trying to make use of Jint object to pass a custom variable from c# to javascript.
When calling the method "GetOrCreateJint" to get the instance it slows down by 300 - 400 ms on my laptop.
Also i tried to create 100 instances to use as pooling but its taking over 2GB of memory.
Are these two scenarios expected or there is a workaround?