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

Issue 689043002: Make JSON.fuse(UTF8) be more efficient by not creating intermediate string. (Closed)

Created:
6 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
6 years, 1 month ago
Reviewers:
Søren Gjesse, sra1
CC:
reviews_dartlang.org, vm-dev_dartlang.org, srdjan
Visibility:
Public.

Description

Make JSON.fuse(UTF8) be more efficient by not creating intermediate string. Adds JsonUtf8Encoder class that can be used directly, or through jsonEncoder.fuse(utf8Encoder) or jsonEncoder.startChunkedConversion(_Utf8EncoderSink). R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=41479

Patch Set 1 #

Patch Set 2 : Better fusing of decoders. #

Total comments: 6

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -156 lines) Patch
M runtime/lib/convert_patch.dart View 1 4 chunks +35 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/convert_patch.dart View 1 1 chunk +7 lines, -0 lines 0 comments Download
M sdk/lib/convert/json.dart View 1 2 13 chunks +586 lines, -155 lines 0 comments Download
M sdk/lib/convert/utf.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Lasse Reichstein Nielsen
6 years, 1 month ago (2014-10-31 09:42:51 UTC) #2
Lasse Reichstein Nielsen
6 years, 1 month ago (2014-10-31 09:42:52 UTC) #3
Søren Gjesse
lgtm https://codereview.chromium.org/689043002/diff/20001/sdk/lib/convert/json.dart File sdk/lib/convert/json.dart (right): https://codereview.chromium.org/689043002/diff/20001/sdk/lib/convert/json.dart#newcode285 sdk/lib/convert/json.dart:285: static const int defaultBufferSize = 256; Isn't this ...
6 years, 1 month ago (2014-11-04 08:26:31 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/689043002/diff/20001/sdk/lib/convert/json.dart File sdk/lib/convert/json.dart (right): https://codereview.chromium.org/689043002/diff/20001/sdk/lib/convert/json.dart#newcode285 sdk/lib/convert/json.dart:285: static const int defaultBufferSize = 256; It's smallish, but ...
6 years, 1 month ago (2014-11-04 10:25:33 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #3 (id:40001) manually as 41479 (presubmit successful).
6 years, 1 month ago (2014-11-04 10:25:48 UTC) #6
sra1
6 years, 1 month ago (2014-11-06 17:58:44 UTC) #8
Message was sent while issue was closed.
FYI: This adds 7.5k to CompileAngular-BouncyBalls.
That seems like a lot.

Powered by Google App Engine
This is Rietveld 408576698