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."

2 of 56 comments (clear)

  1. tumbleweed? by Cronky · · Score: 4, Funny

    system.tumbleWeed.initialise() ?

  2. Re:Is this newsworthy? by Threni · · Score: 3, Funny

    >Making a function that calls System.XYZ.Init() for each xyz is newsworthy?
    >Egad... Time to submit my hello world-programs...

    My hello world program takes a array of char to describe which world is being greeted. The version under development will accept an array of pointers to strings so that more than one world can be greeted.