Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Issue 1086043002: dart2js implementation of StringBuffer.writeAll that optimizes better (Closed)

Created:
5 years, 8 months ago by sra1
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

dart2js 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! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -33 lines) Patch
M runtime/lib/string_buffer_patch.dart View 1 chunk +21 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/core_patch.dart View 2 chunks +33 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/dart2js/source_maps_include_core_libs_in_subdirectory_test.dart View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/test/dart2js/source_maps_include_core_libs_test.dart View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/core/string_buffer.dart View 1 chunk +2 lines, -19 lines 0 comments Download
M tests/corelib/string_buffer_test.dart View 1 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
sra1
5 years, 8 months ago (2015-04-15 03:07:06 UTC) #2
Lasse Reichstein Nielsen
lgtm https://chromiumcodereview.appspot.com/1086043002/diff/1/sdk/lib/_internal/compiler/js_lib/core_patch.dart File sdk/lib/_internal/compiler/js_lib/core_patch.dart (right): https://chromiumcodereview.appspot.com/1086043002/diff/1/sdk/lib/_internal/compiler/js_lib/core_patch.dart#newcode414 sdk/lib/_internal/compiler/js_lib/core_patch.dart:414: _contents = _writeAll(_contents, objects, separator); Have you tried ...
5 years, 8 months ago (2015-04-15 05:33:24 UTC) #3
sra1
https://chromiumcodereview.appspot.com/1086043002/diff/1/sdk/lib/_internal/compiler/js_lib/core_patch.dart File sdk/lib/_internal/compiler/js_lib/core_patch.dart (right): https://chromiumcodereview.appspot.com/1086043002/diff/1/sdk/lib/_internal/compiler/js_lib/core_patch.dart#newcode414 sdk/lib/_internal/compiler/js_lib/core_patch.dart:414: _contents = _writeAll(_contents, objects, separator); On 2015/04/15 05:33:23, Lasse ...
5 years, 8 months ago (2015-04-15 21:45:06 UTC) #4
sra1
Committed patchset #2 (id:20001) manually as 45184 (presubmit successful).
5 years, 8 months ago (2015-04-15 22:02:15 UTC) #5
sra1
5 years, 8 months ago (2015-04-15 23:13:40 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 45188 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698