Reducing Transfer Delay Using Java Class File Splitting and Prefetching

Chandra Krintz, Brad Calder, Urs Holzle

Abstract:

The proliferation of the Internet is fueling the development of mobile computing environments in which mobile code is executed on remote sites. In such environments, the end user must often wait while the mobile program is transferred from the server to the client where it executes. This downloading can create significant delays, hurting the interactive experience of users.

In this paper we propose Java class file splitting and class file prefetching optimizations in order to reduce transfer delay. Class file splitting moves the seldomly used part of a class file into a corresponding cold class file to reduce the number of bytes transfered. Java class file prefetching is used to overlap program transfer delays with program execution. Our splitting and prefetching compiler optimizations do not require any change to the Java Virtual Machine, and thus can be used with existing Java implementations. Class file splitting reduces the startup time for java programs by 10% on average, and class file splitting used with prefetching reduces the overall transfer delay encountered during a mobile program's execution by 25% to 30% on average.