Java Archive

Native Code Sharing in Java 1.5

The respected German computer news site heise.de reports that the next version of java (java 1.5) will have a mechanism to share native code between multiple virtual machines. The feature, which is called class data sharing, will improve start times and reduce memory consumption for people who run multiple java VMs at the same time. This is especially important for client side java programs which use large gui libraries such as Swing.

Eye on performance: Micro performance benchmarking

Performance enthusiasts Jack Shirazi & Kirk Pepperdine, Director & CTO of JavaPerformanceTuning, follow performance discussions all over the Internet to see what's troubling Java developers. While surfing the Usenet newsgroup comp.lang.java, they came across some interesting low-level performance tuning questions. In this installment of Eye on performance, they dive into some bytecode analysis to try and answer some of these questions.

Store objects using the JDK 1.4 Preferences API

The Preferences API -- a lightweight, cross-platform persistence API introduced in JDK 1.4 -- is designed to store small amounts of data (string, simple byte arrays, and so on.) and was not intended to be an interface to a traditional database. It can, however, be effective as a storage device if your data can be expressed as simple objects. This article offers an introduction to the API, explains how objects are stored, demonstrates the process in action, and provides a code library to do the work.