Cache Results for Faster Startup?

Hello new user here. Performing initial research into potential commercial application usage. 1) Am I correct to assume that the Translation from Java to JScript is occurring on the Cheerpj server side when a webpage is loaded? 2) In a commercial environment in which a licensed local copy of CheerpJ is loaded, can the 'results' of the translation be cached, thereby serving up the JScript page much faster for subsequent users? Thank you, I am having a lot of fun and initial success so far!
4 Replies
Hypex
Hypex10mo ago
I believe no. 1 is false - the translation happens in the browser
Nova
NovaOP10mo ago
Interesting. So is there any means to 'capture' and then host the JScript result? What I am trying to avoid is serving up one of my larger Applications and having my customer wait (wild guess here with no evidence) 10 minutes for the app to get translated and load.
apignotti
apignotti10mo ago
There is no mechanism for caching the JIT-ted code but that is not expected to be a problem. Ther performance of the JIT is very good and further performance improvements will be implemented down the line. I would recommend to test the actual performance of the application of interest before making assumptions. 1. is indeed false. There no CheerpJ server side backend. All the translation happens on the fly in the browser Keep in mind that "translating" on the fly (as a matter of fact, compiling) it's the strategy followed by native JVMs as well. It's the natural model for execution Java.
Nova
NovaOP10mo ago
Thank you for your time! This looks very promising.
Want results from more Discord servers?
Add your server