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