ACM Home Page
Please provide us with feedback. Feedback
Adding tuples to Java: a study in lightweight data structures
Full text PdfPdf (91 KB)
Source Java Grande Conference archive
Proceedings of the 2002 joint ACM-ISCOPE conference on Java Grande table of contents
Seattle, Washington, USA
Pages: 185 - 191  
Year of Publication: 2002
ISBN:1-58113-599-8
Authors
C. van Reeuwijk  Delft University of Technology, Delft, The Netherlands
H. J. Sips  Delft University of Technology, Delft, The Netherlands
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 11,   Downloads (12 Months): 57,   Citation Count: 2
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/583810.583831
What is a DOI?

ABSTRACT

Java classes are very flexible, but this comes at a price. The main cost is that every class instance must be dynamically allocated. Their access by reference introduces pointer dereferences and complicates program analysis. These costs are particularly burdensome for small, ubiquitous data structures such as coordinates and state vectors. For such data structures a lightweight representation is desirable, allowing such data to be handled directly, similar to primitive types. A number of proposals introduce restricted or mutated variants of standard Java classes that could serve as lightweight representation, but the impact of these proposals has never been studied.Since we have implemented a Java compiler with lightweight data structures we are in a good position to do this evaluation. Our lightweight data structures are tuples. As we will show, their use can result in significant performance gains: for a number of existing benchmark programs using tuples we gain more than 50% in performance relative to our own compiler, and more than 20% relative to Sun's Hotspot 1.4 compiler. We expect similar performance gains for other implementations of lightweight data structures.With respect to the expressiveness of Java, lightweight variants of standard Java classes have little impact. In contrast, tuples add a different language construct that, as we will show, can lead to substantially more concise program code.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
2
3
 
4
J.M. Bull, L.A. Smith, M.D. Westhead, D.S. Henty, and R.A. Davey. A benchmark suite for high performance Java. Concurrency -- Practice and Experience, 12(6):375--388, May 2000.
 
5
James Gosling. The evolution of numerical computing in Java. webpage.
 
6
 
7
Java Grande forum benchmarks website. www.epcc.ed.ac.uk/javagrande.
 
8
Peeter Laud. Analysis for object inlining in Java. In Proceedings of the Joses Workshop, 2001.
 
9
X. Leroy. The effectiveness of type-based unboxing. In Proceedings of the Workshop "Types in Compilation", Amsterdam, June 1997.
 
10
 
11
Michael Philippsen and Edwin Günthner. Complex numbers for Java. Concurrency: Practice and Experience, 12(6):477--491, May 2000.
 
12
C. van Reeuwijk. Timber download site. www.pds.twi.tudelft.nl/timber/downloading.html.
13
 
14
 
15
K. Yelick, G. Pike, C. Miyamoto, B. Liblit, A. Krishnamurthy, P. Hilfinger, S. Graham, D. Gay, Phil C., and A. Aiken. Titanium: a high-performance Java dialect. In ACM Workshop on Java for High-Performance Network Computing, pages 1--13, February 1998.


Collaborative Colleagues:
C. van Reeuwijk: colleagues
H. J. Sips: colleagues