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

Cache toString() results in Address class for performance gain

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15
    • Component/s: JMS AMQP 0-x
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: