Re: JDK-8352891 Performance improvements to ByteArrayOutputStream

2025-04-05 Thread Scott Palmer
Other than the read-only aspect, is ByteBuffer pretty close to the builder you are looking for? I would think a thin wrapper over a ByteBuffer might be a suitable alternative. Just a quick thought, I haven’t looked at any proposed code.ScottOn Mar 28, 2025, at 6:09 PM, Archie Cobbs wrote:This is

Re: RFR: 8299600: Use Objects.check*() where appropriate in java.io

2023-01-04 Thread Scott Palmer
On Wed, 4 Jan 2023 15:50:35 GMT, Sergey Tsypanov wrote: > Use the following methods instead of hand-written code: > - Objects.checkFromIndexSize() > - Objects.checkFromToIndex() src/java.base/share/classes/java/io/CharArrayWriter.java line 101: > 99: */ > 100: public void write(char[]