Slashdot Mirror


Initializing all Java classes at Start-Up

Jean-Marie Dautelle writes "Java classes are initialized at first-use only which can introduce significant runtime delays detrimental to real-time or games applications (for which accurate scheduling is often required). To solve this problem, the latest open-source Javolution library supports initialization of all Java classes at start-up (e.g. javolution.lang.ClassInitializer.initializeAll(); // Initialize runtime classes (rt.jar) and all classes in classpath). Note: Runtime class initialization (rt.jar) takes typically a few seconds and about 3 Mbytes of memory."

1 of 56 comments (clear)

  1. Re:And? by Anonymous Coward · · Score: -1, Flamebait

    It shows that Java is indeed inherently slow and does not support even the most fundamental features expected from a modern language.

    Sad.