Available CategoriesAdobeMacromediaProgrammingSQLServer AdministrationNetworkingMicrosoft ProductsMac OSLinux systemsMobile devicesXMLCertificationMiscAvailable Tutorials.NET Framework Essentials.NET Programming securityC# In A Nutshell TutorialProgramming C.SharpMastering Visual Studio .NETASP.NETWeb Solutions based on ASP.NET and ADO.NETJava data objectsJava extreme programmingJava performance tuningJava development on pda's. Building applications for pocket pc and palm devicesJavaScript and DHTMLLearning UMLUMLLearning XMLCocoaProgramming CppPerl objects, references and modulesPerl tutorialPython tutorialPython. Text processingPocket pc network programmingPHP & MySQL. Building web database applicationsPHP & MySQL. Programming for beginnersPHP, MySQL and Apache in 24 hoursSoftware architecture in practiceSoftware engineering and computer gamesBuilding Solutions With the Microsoft .NET Compact FrameworkProgramming Microsoft Visual C# 2005ActionscriptMastering Delphi 7Ado.netPractical mod_perlPerl for bioinformaticsWeb ServicesPrinciples of Secure CodingC/C++ Secure ProgrammingASP.NET AJAXVisual C#Borland C++ Builder 6 Developer's Guide |
3.12 Uncompressed ZIP/JAR Files
It is possible to further
improve the classloading times by packing the classes into the
ZIP/JAR file in the order in which they are loaded by the
application.
You can determine the loading order by running the application with
the -verbose option, but note that this ordering
is fragile: slight changes in the application can easily alter the
loading order of classes. A further extension to this idea is to
include your own classloader that opens the ZIP/JAR file itself and
reads in all files sequentially, loading them into memory
immediately. Perhaps the final version of this
performance-improvement route is to dispense with the ZIP/JAR
filesystem: it is quicker to load the files if they are concatenated
together in one big file, with a header at the start of the file
giving the offsets and names of the contained files. This is similar
to the ZIP filesystem, but it is better if you read the header in one
block, and read in and load the files directly rather than going
through the
One further optimization to this classloading tactic is to start the classloader running in a separate (low-priority) thread immediately after VM startup.
|