On Fri, 7 May 2021 15:37:34 GMT, Lin Zang <lz...@openjdk.org> wrote: > Having tried all these ways, I think maybe current solution with > `unbufferedMode` is better. Because it is easy to calculate the array length > in `calculateArrayMaxLength()` and hence know the size of the data to > written. Then it can fill the `size` slot before data are seen, and avoid > using the internal segment buffer by write large array data directly to file.
I think that makes sense. Is this now fully implemented in this PR and it is ready for a final review? ------------- PR: https://git.openjdk.java.net/jdk/pull/2803