tomaswolf opened a new pull request, #253:
URL: https://github.com/apache/mina-sshd/pull/253

   Avoid needlessly copying buffers. If there is only one channelRead() event 
before the channelReadComplete(), we can use the Netty ByteBuf directly. Start 
accumulating buffers only when we get more read events before the "read 
complete".
   
   This avoid extra allocations, buffer copying, and later garbage collection 
of a ByteArrayBuffer for the by far most frequent case where there is only one 
read event. It is also a little more efficient for the next common case 
(exactly two read events) by allocating the buffer to the correct combined size 
for both reads up front.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to