Descriptiondart2js implementation of StringBuffer.writeAll that optimizes better.
Sometimes we can avoid the StringBuffer object:
t1 = new P.StringBuffer(leftDelimiter);
t1.writeAll$2(parts, ", ");
t1 = t1._contents += rightDelimiter;
return t1.charCodeAt(0) == 0 ? t1 : t1;
-->
t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
return t1.charCodeAt(0) == 0 ? t1 : t1;
Also updated tests with missing cases.
R=lrn@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45184
Reverted: https://code.google.com/p/dart/source/detail?r=45186
Committed: https://code.google.com/p/dart/source/detail?r=45188
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : first commit #Patch Set 4 : use Duration instead of StringBuffer for pub tests... until we optimize that! #
Messages
Total messages: 6 (1 generated)
|