JDK-4991944 : Improve the performance of RandomAccessFile's read and write methods
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-02-10
  • Updated: 2013-11-01
  • Resolved: 2004-03-26
Related Reports
Duplicate :  
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.




Comments
WORK AROUND Use the RAF from a buffered stream that reads in larger blocks. ###@###.### 2004-03-24 If you use a buffered stream, you will completely loose the advantage of a *random access* file. ###@###.### 2004-03-25 Use java.nio. ###@###.### 2004-03-25
25-03-2004

EVALUATION True although do the same performance ramifications hold when reading from buffered streams? In any case this is not for Tiger. ###@###.### 2004-03-24 Duplicate of 4137835. See also evaluation of 4170047 for the reason why this fix was backed out. ###@###.### 2004-03-25
24-03-2004