Hello JerryBian!
Are you using V8? That script engine heavily favors performance over memory efficiency, and is particularly lazy when it comes to garbage collection. If you use a single long-lived
We also recommend that you build ClearScript from the latest source code, as several memory leaks have been fixed since the most recent point release.
Good luck!
Are you using V8? That script engine heavily favors performance over memory efficiency, and is particularly lazy when it comes to garbage collection. If you use a single long-lived
V8ScriptEngine
instance to run many scripts, you should call ScriptEngine.CollectGarbage()
periodically.We also recommend that you build ClearScript from the latest source code, as several memory leaks have been fixed since the most recent point release.
Good luck!