Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-900

[Java Common] AMQShortString should not create new byte[] backing when based off a heap buffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • M2.1
    • None
    • Java Common
    • None

    Description

      When an AMQShortString is created it currently copies the data from the supplied ByteBuffer into a newly created array
      this copy is unnecessary when the ByteBuffer is a heapbuffer which is known not to be mutated

      Attachments

        1. QPID-900.patch
          2 kB
          Robert Godfrey

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified