Why does ZipFile.Source.readFullyAt read in chunks?
Alan Bateman
Alan.Bateman at oracle.com
Sat Jan 28 17:06:14 UTC 2023
On 27/01/2023 23:23, Eirik Bjørsnøs wrote:
> :
>
> If this is safe to remove, I'm happy to submit a PR. But code like
> this is usually there for a reason..?
>
8k is the threshold at which RAF spills into a temporary malloc'ed
buffer for the I/O operation. At some point the RAF implementation will
be replaced (we need to do this for a Project Loom), but in the mean
time, it probably would require testing on a wide set of platforms and
conditions to see the impact.
-Alan.
More information about the core-libs-dev
mailing list