Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-461

JmsMessageIDBuilder::createMessageID can save StringBuilder allocations

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.44.0
    • 0.44.0
    • qpid-jms-client
    • None

    Description

      JmsMessageIDBuilder::createMessageID doesn't seem able to correctly perform escape analysis on StringBuilder, allocating many of them.
      The intermediate StringBuilder could be saved into a thread local pool instead, saving unnececessary allocations.

      Attachments

        1. screenshot-1.png
          163 kB
          Francesco Nigro

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tabish Timothy A. Bish
            nigro.fra@gmail.com Francesco Nigro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment