You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a get, once the content is deserialized, MessageFormat returns an InputStream. In order to convert this to a ByteBuffer, the router has to do another copy today.
Instead, have MessageFormat return a ByteBufferInputStream (which is what it returns today anyway). And once #320 goes in, use the ByteBufferInputStream#getByteBuffer() to get a ByteBuffer out of the returned stream from MessageFormat.
During a get, once the content is deserialized,
MessageFormat
returns anInputStream
. In order to convert this to aByteBuffer
, the router has to do another copy today.Instead, have
MessageFormat
return aByteBufferInputStream
(which is what it returns today anyway). And once #320 goes in, use theByteBufferInputStream#getByteBuffer()
to get aByteBuffer
out of the returned stream fromMessageFormat
.See context here: https://github.com/linkedin/ambry/pull/308/files#r63651491
The text was updated successfully, but these errors were encountered: