]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: optimize append_frame 42285/head
authorOr Ozeri <oro@il.ibm.com>
Sun, 6 Jun 2021 13:55:15 +0000 (16:55 +0300)
committerOr Ozeri <oro@il.ibm.com>
Tue, 13 Jul 2021 13:03:44 +0000 (16:03 +0300)
commit3a1edf0c32e119504094c273a9ca48d523dd1c30
tree358dda13169623c6d45343303d359f055b3b20a0
parent3e2c8e94fb9fb8421a08ca425b14833a981565a6
msg/async/ProtocolV2: optimize append_frame

The commonly used append_frame function currently copies
frame data, incurring expensive heap allocation and data copying.
Instead, switch to claiming the frame data, re-using it without copying.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/msg/async/ProtocolV2.cc