Reuse 'subcountersArray' in Counters#Group.makeEscapedCompactString()
---------------------------------------------------------------------

                 Key: MAPREDUCE-2087
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2087
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
            Reporter: Amar Kamat


While optimizing {{Counters#Group.makeEscapedCompactString()}}, MAPREDUCE-1533 
pre-converted the sub-counters into their escaped form for computing the 
overall size required for holding the escaped sub-counters in a 
{{StringBuffer}}. As a result of this pre-conversion, escaped sub-counters are 
stored/cached in an array called _subcountersArray_. Later, while the final 
escaped string is constructed, all the sub-counters are again converted into 
their escaped form. Here the _subcountersArray_, which is created during the 
pre-conversion stage, can be reused.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to