RandomAccessFile is quite slow for random access to a file. You often read about implementing a buffered layer over it, but code doing this isn't possible to find online.
So my question is: would you guys who know any opensource implementation of this class share a pointer or share your own implementation?
It would be nice if this question would turn out as a collection of useful links and code about this problem, which I'm sure, is shared by many and never addressed properly by SUN.
Please, no reference to MemoryMapping, as files can be way bigger than Integer.MAX_VALUE.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…