eclipsesource / J2V8

Java Bindings for V8
2.55k stars 355 forks source link

May support v8 lite mode? #494

Closed ichenhe closed 4 years ago

ichenhe commented 4 years ago

My target devices have very low RAM, and I've noticed v8 lite mode may be more suitable for embedded devices.

I'm sorry I don't know enough about V8, is there any way to enable lite mode?

ahmadov commented 4 years ago

I haven't tried myself but this should be supported with the latest version (6.0.0) of J2V8, the lite mode has been introduced from V8 7.3 and the latest version of J2V8 uses V8 7.4.288.

You only need to pass an argument --lite-mode to V8 like:

V8.setFlags("--lite-mode");

Please let me whether it works or not.

ichenhe commented 4 years ago

Yes, it's works. Thanks very much.