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 "Hadoop QA (JIRA)" <ji...@apache.org> on 2019/04/23 17:12:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16824339#comment-16824339 ]
Hadoop QA commented on HADOOP-16267:
------------------------------------
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 0s{color} | {color:blue} Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red} 0m 8s{color} | {color:red} HADOOP-16267 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HADOOP-16267 |
| JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12966565/HADOOP-16267.patch |
| Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/16181/console |
| Powered by | Apache Yetus 0.8.0 http://yetus.apache.org |
This message was automatically generated.
> 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
> 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.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org