[ 
https://issues.apache.org/jira/browse/PROTON-2859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892349#comment-17892349
 ] 

Clifford Jansen commented on PROTON-2859:
-----------------------------------------

cj-sender.c used with test-drain.c from PROTON-2857

 

> Improve performance of pn_buffer_t defrag
> -----------------------------------------
>
>                 Key: PROTON-2859
>                 URL: https://issues.apache.org/jira/browse/PROTON-2859
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>    Affects Versions: proton-c-0.39.0
>            Reporter: Clifford Jansen
>            Assignee: Clifford Jansen
>            Priority: Major
>         Attachments: cj-sender.c
>
>
> Currently the only optimization in defrag is a check in rotate to do skip 
> memory copies if the rotation amount is zero.  Otherwise, the full capacity 
> is rotated one byte at a time, even if there is only one byte of content.
> Propose to check if the data in the buffer is currently contiguous and only 
> move actual content via memmove.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to