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!
Hypex
Hypex103d ago
I believe no. 1 is false - the translation happens in the browser
TangoLock
TangoLock103d 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
apignotti103d 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.
TangoLock
TangoLock103d ago
Thank you for your time! This looks very promising.
Want results from more Discord servers?
Add your server
More Posts
UnknownHostException happened when the Java application connect to serverUnknownHostException happened when the Java application connect to server. The host name is the sameHTTP server returned compressed partial data. That should not happen. CheerpJ cannot run.Browser shows error "HTTP server returned compressed partial data. That should not happen. CheerpJ cAccesing the standard out and standard error stream from the Java processHow do I from javascript access the output streams from the started Java process?Any plan on adding internet access without Tailscale?Hi there ! Do you plan on adding internet access without the need to install Tailscale etc, that wour[((0 + c) | 0)] is not a function when instantiating objectHello, thank you all for developing CheerpJ, it is an impressive tool! I am playing around with tryiI'm always looking for the URL of the latest build of cj3loader.js by searching articlesI'm always looking for the URL of the latest build of cj3loader.js by searching articles, but is theDifferent behavior between extension and cj3loaderWe have a java applet that runs perfectly when using the CheerpJ browser extension, but fails to fulCan I try CheerpX?I know it's not fully ready yet, but I think it's fine for my use cases in its current staterunning java decompiler in browser, weird error(copy-pasting from #cheerpj3 since i noticed this channel existed) i'm trying to run the procyon javAccessibility of Java applicationsHi team, I noticed that apps running on CheerpJ are not accessible to people with disabilities. Thisjnlp launch verification fails with 64 bit swt librariesThe launch has below error. Java.lang.unsatisfiesLinkError: cannot load 64-bit SWT libraries on 32-bhow to debug why the jar main class is not loadingI am trying to convert old jnlp client to html format. I followed the documentation and used cheerpjTrying to get CheerpJ to actually launch a programI'm trying to get CheerpJ to run UPRandomizer in a browser, but I can't figure out how to get it to Compiling .FMX with CheerpJHow do you convert .FMX with CheerpJ compiler?Any idea on how to use wildcards for jar files with many separate jar dependencies?I've been working on some projects and one of them involves a lot of dependencies in the form of jarCan I try CheerpX for Flash?From @sergo53: > Hi! I`d like to test the CheerpX for Flash... Where can I download the package? > N