It appears that io.pkts.buffer.InputStreamBuffer has been replaced by io.pkts.buffer.BoundedInputStreamBuffer in all usage. Given how similar the two classes are, does it make sense to delete the vestigial io.pkts.buffer.InputStreamBuffer? If not, can we extract a superclass to reduce duplication?
I ask because I'm poking around with why my code is slow, and it turns out that Buffer.readBytes(int) calls are forwarded all the way down to a low-level Channel that's really inefficient for short reads, so I want to find some place to buffer a few KB.
It appears that
io.pkts.buffer.InputStreamBuffer
has been replaced byio.pkts.buffer.BoundedInputStreamBuffer
in all usage. Given how similar the two classes are, does it make sense to delete the vestigialio.pkts.buffer.InputStreamBuffer
? If not, can we extract a superclass to reduce duplication?I ask because I'm poking around with why my code is slow, and it turns out that
Buffer.readBytes(int)
calls are forwarded all the way down to a low-levelChannel
that's really inefficient for short reads, so I want to find some place to buffer a few KB.