It's just evidence of my mental slowness...

In the prior PR, Guozhang pointed out that my calling `buffer.array()` was 
incorrect, since the backing array isn't guaranteed to be exactly within the 
bounds we allocated. I fixed it at the time by delegating to the 
`ByteBufferSerializer`, which handles this.

Later on I realized that there is a more efficient solution available. By 
pre-creating the backing array and wrapping it, we know that `buffer.array()` 
returns what we needed. No need for the more general handling logic in 
`ByteBufferSerializer`.

[ Full content available at: https://github.com/apache/kafka/pull/5693 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to