[ https://issues.apache.org/jira/browse/THRIFT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932656#action_12932656 ]
Bjørn Borud commented on THRIFT-963: ------------------------------------ the obvious thing would be to just discard buffers that are above a certain size threshold. does DynamicChannelBuffer have a method for shrinking as well as growing? > 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.