caoccao/Javet

IV8Executor#toObject cost too much cpu

Closed this issue · 3 comments

image
wonder how to slove
version 1.1.0

The overall performance depends on how complicated your objects are. It's similar to JSON.parse or JSON.stringify.

There are a few ways to improve the performance.

  1. Upgrade to the latest version of Javet. Please refer to project JavetPerf for details.
  2. Use JavetProxyConverter wisely.
  3. Write your own converters.
  4. Have code review with me.

com.caoccao.javet.interop.converters.JavetObjectConverter
with this convert
why JavetObjectConverter convert with lock and reflect instead Json result parse to JavaObject?

I guess there might be some misunderstandings between us. Would you mind visiting the discord to discuss with me in detail?