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

Unified Diff: sdk/lib/utf/utf.dart

Issue 26681002: Add EfficientLength marker interface to some iterabels. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also document Map.length is efficient, while we are at it. Created 7 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
« no previous file with comments | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/utf/utf.dart
diff --git a/sdk/lib/utf/utf.dart b/sdk/lib/utf/utf.dart
index 229b5aab647bd1b12fc2e8189496533235cafc27..691905c36cbd589252ee6c59229ac4066b4b7fa8 100644
--- a/sdk/lib/utf/utf.dart
+++ b/sdk/lib/utf/utf.dart
@@ -8,7 +8,7 @@
*/
@deprecated
library dart.utf;
-import "dart:_collection-dev" show deprecated;
+import "dart:_collection-dev" show deprecated, EfficientLength;
import "dart:async";
import "dart:collection";
part "utf_stream.dart";
@@ -222,7 +222,7 @@ class Utf16CodeUnitDecoder implements Iterator<int> {
*/
// TODO(floitsch): Consider removing the extend and switch to implements since
// that's cheaper to allocate.
-class _ListRange extends IterableBase {
+class _ListRange extends IterableBase implements EfficientLength {
final List _source;
final int _offset;
final int _length;
« no previous file with comments | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698