Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1543

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cube

    Description

      Location: lens-cube/src/main/java/org/apache/lens/cube/metadata/DateUtil.java

      Since the string to be replaced is not complicated regular expression, the other one (String.replace()) is recommended as it is more efficient than replaceAll() without pre-compiling.

      Attachments

        1. 1.patch
          0.9 kB
          bd2019us

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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 - 10m
                  10m