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

Cache toString() results in Address class for performance gain

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.15
    • JMS AMQP 0-x
    • None
    • All OS platforms.

    Description

      Address is an immutable class with a fairly expensive toString() method. Being that this class never changes we should cache this for performance improvements when running in debug/trace mode. Our internal QA department using jProfiler identified performance gains that could be made in doing this and I can't see any reason not to do so.

      Attachments

        1. QPID-3766.patch
          2 kB
          Weston M. Price

        Activity

          People

            wprice Weston M. Price
            wprice Weston M. Price
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: