You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jian He (JIRA)" <ji...@apache.org> on 2013/08/08 21:12:48 UTC

[jira] [Assigned] (YARN-1045) Improve toString implementation for PBImpls

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

Jian He reassigned YARN-1045:
-----------------------------

    Assignee: Jian He
    
> Improve toString implementation for PBImpls
> -------------------------------------------
>
>                 Key: YARN-1045
>                 URL: https://issues.apache.org/jira/browse/YARN-1045
>             Project: Hadoop YARN
>          Issue Type: Improvement
>    Affects Versions: 2.0.4-alpha
>            Reporter: Siddharth Seth
>            Assignee: Jian He
>         Attachments: YARN-1045.patch
>
>
> The generic toString implementation that is used in most of the PBImpls {code}getProto().toString().replaceAll("\\n", ", ").replaceAll("\\s+", " ");{code} is rather inefficient - replacing "\n" and "\s" to generate a one line string. Instead, we can use {code}TextFormat.shortDebugString(getProto());{code}.
> If we can get this into 2.1.0 - great, otherwise the next release.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira