Paper
12 July 2001 Writing high-performance Java code that runs as fast as Fortran, C, or C++
Author Affiliations +
Proceedings Volume 4521, Java/Jini Technologies; (2001) https://doi.org/10.1117/12.432994
Event: ITCom 2001: International Symposium on the Convergence of IT and Communications, 2001, Denver, CO, United States
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.
© (2001) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
James C. Schatzman "Writing high-performance Java code that runs as fast as Fortran, C, or C++", Proc. SPIE 4521, Java/Jini Technologies, (12 July 2001); https://doi.org/10.1117/12.432994
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Java

C++

Linear algebra

Algorithm development

Data conversion

Lead

Time metrology

Back to Top