Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2859

Improve performance of pn_buffer_t defrag

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.39.0
    • None
    • proton-c
    • None

    Description

      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.

      Attachments

        1. cj-sender.c
          19 kB
          Clifford Jansen

        Activity

          People

            cliffjansen Clifford Jansen
            cliffjansen Clifford Jansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: