db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: Code coverage for client.net package
Date Sat, 26 May 2012 01:39:51 GMT
> PublicBufferOutputStream.getBuffer() returns the buffer directly,
> whereas ByteArrayOutputStream.toByteArray() creates a copy of the
> internal buffer. So by using PublicBufferOutputStream we save one
> allocation of a byte array per write.

That seems like a strong enough reason to favor PublicBufferOutputStream, to me.

thanks,

bryan

Mime
View raw message