You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/07/31 02:22:00 UTC

[jira] [Assigned] (HADOOP-16267) Performance gain if you use replace() instead of replaceAll() for replacing patterns that do not use a regex

     [ https://issues.apache.org/jira/browse/HADOOP-16267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wei-Chiu Chuang reassigned HADOOP-16267:
----------------------------------------

    Assignee: bd2019us

> 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
>    Affects Versions: 3.1.2
>            Reporter: bd2019us
>            Assignee: bd2019us
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HADOOP-16267.patch
>
>
> 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-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-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/PrintJarMainClass.java



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org