[
https://issues.apache.org/jira/browse/PROTON-2859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clifford Jansen updated PROTON-2859:
------------------------------------
Attachment: cj-sender.c
> 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: [email protected]
For additional commands, e-mail: [email protected]