RFR(JDK12/NIO) 8202285: (fs) Add a method to Files for comparing file contents
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Sep 19 20:52:51 UTC 2018
On Sep 19, 2018, at 1:44 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> On Sep 19, 2018, at 1:14 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
>> Starting out using buffered I/O is probably okay but I assume we will want to change this in the future to having it use memory mapped I/O beyond a certain threshold.
>
> For the buffered case, could there be any performance advantage to using direct buffers with FileChannel and comparing running checksums of the two sources?
Don’t think this would work however as two files with differing content could conceivable have the same checksum however likely that might be.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180919/7719dca6/attachment.html>
More information about the nio-dev
mailing list