[ 
https://issues.apache.org/jira/browse/DIRMINA-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561991#action_12561991
 ] 

Trustin Lee commented on DIRMINA-518:
-------------------------------------

What's interesting is that the gathered writes performs somewhat better only 
when direct buffers are used.  If heap buffers are used, JDK automatically 
merges them into one big direct buffer, which mean no benefit of gathered 
write.  And as you know, direct buffer often performs so bad when you create a 
message with many fields.  Therefore, there's no actual way to improve 
performance with gathered write for now unfortunately.

I have implemented gathered write in MINA twice in my working copy and reverted 
back because it just didn't perform as expected.  Please let me know if you 
were able to produce some positive result with gathered writes.  That would be 
awesome.

> Support gathering writes
> ------------------------
>
>                 Key: DIRMINA-518
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-518
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: David M. Lloyd
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>
> It may be worthwhile to enhance the various processor implementations to 
> accept a Collection<IoBuffer> or IoBuffer[] and perform a gathering write 
> across all the collection members.  For datagram protocols, this would allow 
> messages to be composed without copying.  For stream protocols, this might 
> simply improve performance.  In addition, stream protocols could benefit from 
> doing gathering writes in general when there are many buffers queued up.

-- 
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