Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4010

Use pre compiled patterns for JMX ObjectName encoder

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Broker
    • Labels:
      None

      Description

      Using string replaceAll does not cache the regexp, and would need to compile on each invocation.

      Its thus better to use a pre compiled pattern if possible.

        Attachments

        1. before.png
          26 kB
          Claus Ibsen
        2. after.png
          20 kB
          Claus Ibsen

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: