Practical experience with an application extractor for Java
Frank Tip, Chris Laffra, Peter F. Sweeney et al. · ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) · 1999
Java programs are routinely transmitted over low-bandwidth network connections as compressed class file archives (i.e., zip files and jar files). Since archive size is directly proportional to download time, it is desirable for applications to be as small as possible. This paper is concerned with the use of program transformations such as removal of dead methods and fields, inlining of method calls, and simplification of the class hierarchy for reducing application size. Such “extraction” techniques are generally believed to be especially useful for applications that use class libraries, since typically only a small fraction of a library's functionality is used. By “pruning away” unused library functionality, application size can be reduced dramatically. We implemented a number of application extraction techniques in Jax, an application extractor for Java, and evaluate their effectiveness on a set of realistic benchmarks ranging from 27 to 2,332 classes (with archives ranging from 56,796 to 3,810,120 bytes). We report archive size reductions ranging from 13.4% to 90.2% (48.7% on average).
Cited by 101 works. doi:10.1145/320384.320414 Open-access PDF
Authors
References
- The Java Language Specification
- Java Virtual Machine Specification
- The Java Programming Language
- Points-to analysis in almost linear time
- The Java programming language (2nd ed.)
- Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis
- Fast static analysis of C++ virtual function calls
- Fast and accurate flow-insensitive points-to analysis
- Design, implementation, and evaluation of optimizations in a just-in-time compiler
- Slicing class hierarchies in C++