4 ms·
As I understand it, a big part of the slow load time for Java apps is sucking everything on the classpath into RAM, even though most apps will use a fraction of
by jacques_chester 11y ago
As I understand it, a big part of the slow load time for Java apps is sucking everything on the classpath into RAM, even though most apps will use a fraction of the classes that are loaded.
Java 9's module system should make that a lot less of a problem by giving the JVM guidance on what it should load and skip.
I am not a Java expert, though, so I may have misunderstood what's going on.
- fiatmoney 11y agoThe JVM class loader by default reads a class on first reference to it in the code it's executing. Never refer to it, never gets loaded. Startup on the JVM is more affected by the JIT warming up, and the heap getting into a "stable" configuration.
- jacques_chester 11y agoThanks for the correction.