Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-778

change String.replaceAll() to replace() to improve performance.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0, 3.0.1, 3.1.0
    • 3.1.3
    • None

    Description

      Location:

      (1) pluto-container/src/main/java/org/apache/pluto/container/impl/RenderResponseImpl.java

      (2) pluto-taglib/src/main/java/org/apache/pluto/tags/BaseURLTag.java

      Since the string to be replaced is simple string literal that does not need to be compiled, i.e., not regular expression. Another API String.replace() should be used and recommended for better performance.

      Attachments

        1. 1.patch
          2 kB
          bd2019us

        Issue Links

          Activity

            People

              asfgriff Neil Griffin
              bd2019us bd2019us
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m