Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4991944
Votes 0
Synopsis Improve the performance of RandomAccessFile's read and write methods
Category java:classes_io
Reported Against 1.5
Release Fixed
State 11-Closed, duplicate of 4137835, request for enhancement
Priority: 4-Low
Related Bugs 4137835
Submit Date 10-FEB-2004
Description
The methods readShort(), readInt(), readLong() as well as the equivalent write methods of class RandomAccessFile can be improved from a performance point of view. See comments.


Work Around
Use the RAF from a buffered stream that reads in larger blocks.
  xxxxx@xxxxx   2004-03-24

If you use a buffered stream, you will completely loose the advantage of a *random access* file.
  xxxxx@xxxxx   2004-03-25

Use java.nio.
  xxxxx@xxxxx   2004-03-25
Evaluation
True although do the same performance ramifications hold when reading from buffered streams? In any case this is not for Tiger.
  xxxxx@xxxxx   2004-03-24

Duplicate of 4137835. See also evaluation of 4170047 for the reason why this fix was backed out.
  xxxxx@xxxxx   2004-03-25
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang