You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/14 01:30:00 UTC

[jira] [Created] (LENS-1543) change String.replaceAll() to replace() to improve performance.

bd2019us created LENS-1543:
------------------------------

             Summary: change String.replaceAll() to replace() to improve performance.
                 Key: LENS-1543
                 URL: https://issues.apache.org/jira/browse/LENS-1543
             Project: Apache Lens
          Issue Type: Bug
          Components: cube
            Reporter: bd2019us


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)