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

Issue 11565034: Improve performance of dart2js StringBuffer. (Closed)

Created:
8 years ago by ahe
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, srdjan
Visibility:
Public.

Description

Improve performance of dart2js StringBuffer. Committed: https://code.google.com/p/dart/source/detail?r=17639

Patch Set 1 : #

Total comments: 11

Patch Set 2 : Address some review comments #

Patch Set 3 : Rebased #

Patch Set 4 : Cleaned up #

Total comments: 3

Patch Set 5 : Address review comments #

Patch Set 6 : Rebased #

Patch Set 7 : Updated to lib_v2 and private libraries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -94 lines) Patch
M dart/runtime/lib/lib_sources.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + dart/runtime/lib/string_buffer_patch.dart View 1 2 3 4 5 1 chunk +4 lines, -33 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M dart/sdk/lib/core/string_buffer.dart View 1 2 3 4 5 2 chunks +1 line, -59 lines 0 comments Download
M dart/tests/language/string_interpolation_and_buffer.dart View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ahe
Before: StringInterpolation(RunTime): 8559.82905982906 us. StringBuffer(RunTime): 23022.988505747126 us. StringIdiomatic(RunTime): 22494.38202247191 us. BuildTableInterpolation(RunTime): 25.304604172729228 us. BuildTableBuffer(RunTime): 65.72893387669252 ...
8 years ago (2012-12-14 14:54:26 UTC) #1
ngeoffray
https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart File dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (right): https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart#newcode144 dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart:144: JS('String', '# += #', _contents, obj); Make this JS ...
8 years ago (2012-12-19 16:23:29 UTC) #2
Lasse Reichstein Nielsen
drive-by comment https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart File dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (right): https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart#newcode147 dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart:147: String str = obj.toString(); If you just ...
8 years ago (2012-12-19 17:02:42 UTC) #3
sra1
https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart File dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (right): https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart#newcode144 dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart:144: JS('String', '# += #', _contents, obj); On 2012/12/19 16:23:29, ...
8 years ago (2012-12-19 17:09:51 UTC) #4
ahe
https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart File dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (right): https://codereview.chromium.org/11565034/diff/7/dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart#newcode144 dart/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart:144: JS('String', '# += #', _contents, obj); On 2012/12/19 16:23:29, ...
7 years, 11 months ago (2013-01-02 10:20:42 UTC) #5
ahe
PTAL. If you want to look at the incremental changes, look at patch set 2 ...
7 years, 11 months ago (2013-01-02 13:43:14 UTC) #6
ngeoffray
LGTM! https://codereview.chromium.org/11565034/diff/15001/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart File dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart (right): https://codereview.chromium.org/11565034/diff/15001/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart#newcode223 dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart:223: (content is String) ? content : '$content'); Why ...
7 years, 11 months ago (2013-01-03 13:56:54 UTC) #7
ahe
Thank you! https://codereview.chromium.org/11565034/diff/15001/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart File dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart (right): https://codereview.chromium.org/11565034/diff/15001/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart#newcode223 dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart:223: (content is String) ? content : '$content'); ...
7 years, 11 months ago (2013-01-03 15:42:09 UTC) #8
ahe
A few minor tweaks after updating to lib_v2 and internal libraries.
7 years, 11 months ago (2013-01-25 15:31:36 UTC) #9
ngeoffray
7 years, 10 months ago (2013-01-28 09:35:20 UTC) #10
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698