8227080: (fs) Files.newInputStream(...).skip(n) is slow
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Jul 2 22:00:30 UTC 2019
> On Jul 2, 2019, at 1:23 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
>> I'm not a reviewer, but is there a policy to handle long overflows?
>
> Good point. Maybe Math.addExact(long,long) could be used and if an ArithmeticException occurs it could be wrapped in an IOException. Needs investigation.
Here is an updated version which should not have a problem with overflow:
http://cr.openjdk.java.net/~bpb/8227080/webrev.01/
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190702/588318ef/attachment.html>
More information about the nio-dev
mailing list