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

Unified Diff: sdk/lib/_internal/compiler/js_lib/convert_patch.dart

Issue 689043002: Make JSON.fuse(UTF8) be more efficient by not creating intermediate string. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better fusing of decoders. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/js_lib/convert_patch.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/convert_patch.dart b/sdk/lib/_internal/compiler/js_lib/convert_patch.dart
index 2686ca6cdb3eb8f14436833e9244979775e88d02..bd8816f9f4a3675d2f154927a72084ed023c7900 100644
--- a/sdk/lib/_internal/compiler/js_lib/convert_patch.dart
+++ b/sdk/lib/_internal/compiler/js_lib/convert_patch.dart
@@ -369,3 +369,10 @@ class _JsonDecoderSink extends _StringSinkConversionSink {
_sink.close();
}
}
+
+@patch class Utf8Decoder {
+ @patch
+ Converter<List<int>,dynamic> fuse(Converter<String, dynamic> next) {
+ return super.fuse(next);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698