Does Javet support V8 Code Caching and Workers?
I've recently tried replacing Android WebView with Javet to improve the performance of our mobile framework. I'm attempting to implement either V8 snapshots or V8 code caching for a faster app startup. According to the documentation, Javet supports V8 snapshots, but I haven't seen any mention of code caching. Does Javet support V8 code caching?
Additionally, Any plans to add support for Native Workers on Android?
I've successfully integrated Javet with our framework, but I haven't noticed any performance improvements. Are there any projects where Javet has been integrated into an Android app and shown significant performance gains? Alternatively, could you guide me through the steps to optimize performance?
Script, Module, Function all support code cache. Please refer to JavaDoc for detail.
Javet gives almost all possibilities to the app. It's app's decision on what native workers are, how to implement them.
If you migrate from J2V8 to Javet, you won't experience significant performance improvement. There are more factors to be considered:
- Is the project well maintained?
- Is the JS engine up-to-date?
- Is the API friendly?
- Is the backward / forward compatibility good?
- ...
Sure. Thanks for the response. Native worker I meant is the Polyfill for Web Worker in node.
- Javet provides Node.js mode.
- Polyfill work is in project Javenode.
- One of the goals is to provide genuine Node.js and V8 to the Javet users.