AW: Files.read/readAllBytes can loop once with zero size buffer
ecki at zusammenkunft.net
ecki at zusammenkunft.net
Fri Jul 29 06:21:01 UTC 2016
Hello,
It could always read with a initial buffer of 0.5-16k and return a truncated copy if it read less (and a omit truncation by returning shared static 0 length array if empty). But this will only optimize the 0 byte case.
Gruss
Bernd
--
http://bernd.eckenfels.net
>From Win 10 Mobile
Von: Martin Buchholz
More information about the core-libs-dev
mailing list