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 "Ayush Saxena (JIRA)" <ji...@apache.org> on 2019/01/08 12:29:00 UTC

[jira] [Comment Edited] (HADOOP-16029) Consecutive Append Should Reuse

    [ https://issues.apache.org/jira/browse/HADOOP-16029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16737078#comment-16737078 ] 

Ayush Saxena edited comment on HADOOP-16029 at 1/8/19 12:28 PM:
----------------------------------------------------------------

[~giovanni.fumarola] Can you help review!!!
This has a mention [here|https://pmd.github.io/latest/pmd_rules_java_performance.html#consecutiveappendsshouldreuse] too. 


was (Author: ayushtkn):
[~giovanni.fumarola] Can you help review!!!

> Consecutive Append Should Reuse
> -------------------------------
>
>                 Key: HADOOP-16029
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16029
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>         Attachments: HADOOP-16029-01.patch, HADOOP-16029-02.patch
>
>
> Consecutive calls to StringBuffer/StringBuilder .append should be chained, reusing the target object. This can improve the performance by producing a smaller bytecode, reducing overhead and improving inlining.



--
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