Verbose compilation
Anyway to develop a progress bar for the compilation process? I found "preloadProgress" in CheerpJ docs for the init function but I'm pretty sure it doesn't provide information about how far the browser is with compiling the program.
2 Replies
This feature is not currently available, and it is actually not well defined.
CheerpJ is running Java bytecode, it has no "understanding" of how much longer code needs to run, or when the application is loaded.
These are application-level concepts that the VM simply cannot know
CheerpJ also does not compile the whole application and then start it, CheerpJ runs Java bytecode from classes the first time they are used, similarly to a native JVM
This code is then JIT-ted if executed a sufficient number of time
Classes which are never used, for example, are never loaded or compiled
i see, thanks for letting me know!