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

Issue 12391010: Make HashSet.length constant time. (Closed)

Created:
7 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 9 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make HashSet.length constant time. Ditto for SplayTree iterators and fix bug in ListIterable.isEmpty. Add test for quickness of .length and .isEmpty of String, Maps and Collections. Not fast enough, and the test will timeout. BUG=http://dartbug.com/8839 Committed: https://code.google.com/p/dart/source/detail?r=19228

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -1 line) Patch
M sdk/lib/_collection_dev/iterable.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/hash_set.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/collection/linked_hash_set.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/collection/splay_tree.dart View 1 chunk +4 lines, -0 lines 0 comments Download
A tests/corelib/collection_length_test.dart View 1 chunk +75 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein Nielsen
https://codereview.chromium.org/12391010/diff/1/tests/corelib/collection_length_test.dart File tests/corelib/collection_length_test.dart (right): https://codereview.chromium.org/12391010/diff/1/tests/corelib/collection_length_test.dart#newcode1 tests/corelib/collection_length_test.dart:1: // Copyright (c) 2011, the Dart project authors. Please ...
7 years, 9 months ago (2013-02-28 11:00:50 UTC) #1
floitsch
LGTM.
7 years, 9 months ago (2013-02-28 12:48:25 UTC) #2
Lasse Reichstein Nielsen
7 years, 9 months ago (2013-02-28 14:14:39 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r19228 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698