Adaptive class loading
AssigneeInternational Business Machines Corporation
InventorsBrian Martin, Daniel Moravec, Thomas Musta, Eric Norman
Life of this patent
Estimating the term…
Abstract
A method, apparatus, system, and signal-bearing medium that, in an embodiment, determine the classes that are needed during a first invocation of an application and preload those classes during a subsequent invocation of the application. In various embodiments, the classes may be preloaded if they are within a specified package, if they were needed greater than a threshold number of times, if the class path did not change between the first invocation and the subsequent invocation, or if the jar files the contain the classes are in a class path. In this way, an embodiment of the invention may increase the performance of class preloading.
Claims20
A method comprising:
- determining a plurality of classes needed during a first invocation of an application;
- and
- preloading the plurality of classes during a subsequent invocation of the application.
An apparatus comprising:
- means for determining a plurality of classes needed during a first invocation of an application;
- means for deciding whether a class path has changed between the first invocation and a subsequent invocation of the application;
- and
- means for preloading the plurality of classes during the subsequent invocation of the application if the class path has not changed.
A signal-bearing medium encoded with instructions, wherein the instructions when executed comprise:
- determining a plurality of classes needed and a plurality of jar files that contain the plurality of classes during a first invocation of an application;
- deciding whether the plurality of jar files are in a class path during the first invocation of the application;
- and
- preloading the plurality of classes during a subsequent invocation of the application if the deciding is true.
A computer system comprising:
- a processor;
- and
- memory encoded with instructions, wherein the instructions when executed on the processor comprise:
- determining a plurality of classes needed during a first invocation of an application,
- deciding whether each of the plurality of classes is within a filter criteria specified by a user, and
- preloading the plurality of classes that are within the filter criteria specified by the user during a subsequent invocation of the application.
A method for configuring a computer, comprising:
- configuring the computer to determine a plurality of classes needed during a first invocation of an application;
- and
- configuring the computer to preload the plurality of classes during a subsequent invocation of the application.
Dependencies are inferred from the claim text.