Ticket #484 (closed task: fixed)
Opened 2010-03-23T15:58:44-05:00
Last modified 2010-07-13T16:58:25-05:00
Investigate usage of FileChannel.map(...)
Reported by: | melissa | Owned by: | melissa |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | bio-formats | Severity: | serious |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Prior to r6060, NIOFileHandle used the 'map' method in FileChannel to read bytes from a file. However, this was replaced with calls to the 'read' method because of the following Java bugs:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092131 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6417205
Unfortunately, this means that NIOFileHandle is considerably slower. We should investigate a way of efficiently using 'map' while avoiding the above bugs.
See r6093 and r6100.