bd2019us created HADOOP-16267:
---------------------------------

             Summary: Performance gain if you use replace() instead of 
replaceAll() for replacing patterns that do not use a regex 
                 Key: HADOOP-16267
                 URL: https://issues.apache.org/jira/browse/HADOOP-16267
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: bd2019us


Performance gain if you use replace() instead of replaceAll() for replacing 
patterns that do not use a regex. This happens because replace() does not need 
to compile the regex pattern like replaceAll() does.

Affected files:
* 
hadoop-common/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java
* 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/Graph.java
* 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/Graph.java





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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to