[ 
https://issues.apache.org/jira/browse/THRIFT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932643#action_12932643
 ] 

Ryan King commented on THRIFT-963:
----------------------------------

We might want to consider a dynamically sized buffer, like netty has: 
http://docs.jboss.org/netty/3.1/api/org/jboss/netty/buffer/DynamicChannelBuffer.html

> Reuse buffers in TNonblockingServer
> -----------------------------------
>
>                 Key: THRIFT-963
>                 URL: https://issues.apache.org/jira/browse/THRIFT-963
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>             Fix For: 0.6
>
>
> Right now, we reallocate buffers all the time (twice per request!). We should 
> be able to reuse these buffers quite easily. The only downside to reusing 
> buffers is that each connection will hold as much memory as the biggest 
> request they ever saw, which can be wasteful. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to