Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Profiling shows that BufferedRandomAccessFile.length is eating up an unexpected amount of cpu. It believe it is the call through the "native barrier" that is causing it. We often call the length method via is end of file when reading data. We can add caching of the file length to avoid this call most times.