Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6657

change replaceAll() to replace() when a regex is not used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 9.0.0-M2
    • None

    Description

      When a regex is not used, replace() is more optimal than replaceAll() because replaceAll() has extra performance overhead from attempting to compile the unused regex

      Affected file:

      • wicket-util/src/main/java/org/apache/wicket/util/lang/Args.java

      Attachments

        1. WICKET-6657.patch
          0.6 kB
          bd2019us

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            bd2019us bd2019us
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: