You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/03/26 11:30:55 UTC
[jira] [Created] (SSHD-439) Re-use read buffer in Nio2Session
Goldstein Lyor created SSHD-439:
-----------------------------------
Summary: Re-use read buffer in Nio2Session
Key: SSHD-439
URL: https://issues.apache.org/jira/browse/SSHD-439
Project: MINA SSHD
Issue Type: Improvement
Affects Versions: 1.0.0
Reporter: Goldstein Lyor
The original asynchronous calls recursively _startReading()_ upon successful handling of the incoming message. This means that a **new** _ByteBuffer_ of size 32K is created every time this happens (not to mention a new object reference for the _Readable_ wrapper). Obviously, we can (and should) re-use the buffer once handling of the previous message is completed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)