Share Email Print

Proceedings Paper

Writing high-performance Java code that runs as fast as Fortran, C, or C++
Author(s): James C. Schatzman
Format Member Price Non-Member Price
PDF $14.40 $18.00
cover GOOD NEWS! Your organization subscribes to the SPIE Digital Library. You may be able to download this paper for free. Check Access

Paper Abstract

Java software is often perceived to be slow as compared to corresponding C/C++ or FORTRAN software. For some computationally demanding algorithms, straightforward implementations in Java may run 100-150 times or more slower than C++ or FORTRAN. In the past, problem algorithms have included floating point intensive algorithms such as FFTs and integer functions such as endian and alignment byte manipulations. However, current JVMs do well with model floating point code such as FFTs and linear algebra. Java vectors and lists are somewhat slow compared to C++ equivalents; hashmaps can be very fast. Function calls in general, and getters and setters in particular, remain troublesome. Current JITs are extremely important for optimizing performance.

Paper Details

Date Published: 12 July 2001
PDF: 9 pages
Proc. SPIE 4521, Java/Jini Technologies, (12 July 2001); doi: 10.1117/12.432994
Show Author Affiliations
James C. Schatzman, TRW, Inc. (United States)

Published in SPIE Proceedings Vol. 4521:
Java/Jini Technologies
Sudipto Ghosh, Editor(s)

© SPIE. Terms of Use
Back to Top