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

Issue 22859069: Reapply "Make Map constructors return LinkedHashMap." (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, Jennifer Messerly, terry
Visibility:
Public.

Description

Reapply "Make Map constructors return LinkedHashMap." Updated tests assuming a specific ordering of an unlinked hash map to not be daft. R=floitsch@google.com, jmesserly@google.com Committed: https://code.google.com/p/dart/source/detail?r=26693

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make LinkedHashMap a HashMap #

Total comments: 2

Patch Set 3 : Make map_values2_test know the order. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -114 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/analyzer_experimental/lib/src/generated/java_core.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/csslib/test/var_test.dart View 2 chunks +23 lines, -17 lines 0 comments Download
M pkg/polymer/test/css_test.dart View 1 chunk +55 lines, -57 lines 0 comments Download
M sdk/lib/collection/iterable.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/collection/linked_hash_map.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/core/map.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M tests/corelib/linked_hash_map_from_iterable_test.dart View 1 6 chunks +0 lines, -6 lines 0 comments Download
M tests/corelib/linked_hash_map_from_iterables_test.dart View 1 3 chunks +0 lines, -3 lines 0 comments Download
M tests/corelib/map_from_iterable_test.dart View 6 chunks +6 lines, -7 lines 0 comments Download
M tests/corelib/map_from_iterables_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/corelib/map_from_test.dart View 1 4 chunks +16 lines, -3 lines 0 comments Download
M tests/corelib/map_values2_test.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_detach_socket_test.dart View 1 chunk +9 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-08-26 11:05:14 UTC) #1
Lasse Reichstein Nielsen
PTAL
7 years, 3 months ago (2013-08-26 11:38:32 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/22859069/diff/1/tests/corelib/map_values2_test.dart File tests/corelib/map_values2_test.dart (right): https://codereview.chromium.org/22859069/diff/1/tests/corelib/map_values2_test.dart#newcode45 tests/corelib/map_values2_test.dart:45: Expect.isTrue(map5.values.first == 43 || map5.values.first == 500); You ...
7 years, 3 months ago (2013-08-26 13:00:47 UTC) #3
floitsch
CCing John for polymer test changes and Konstantin for editor changes.
7 years, 3 months ago (2013-08-26 13:01:40 UTC) #4
scheglov
LGTM
7 years, 3 months ago (2013-08-26 14:53:52 UTC) #5
Jennifer Messerly
LGTM! https://codereview.chromium.org/22859069/diff/3001/pkg/polymer/test/css_test.dart File pkg/polymer/test/css_test.dart (right): https://codereview.chromium.org/22859069/diff/3001/pkg/polymer/test/css_test.dart#newcode415 pkg/polymer/test/css_test.dart:415: // Check for warning messages about var- cycles ...
7 years, 3 months ago (2013-08-26 17:15:39 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/22859069/diff/1/tests/corelib/map_values2_test.dart File tests/corelib/map_values2_test.dart (right): https://codereview.chromium.org/22859069/diff/1/tests/corelib/map_values2_test.dart#newcode45 tests/corelib/map_values2_test.dart:45: Expect.isTrue(map5.values.first == 43 || map5.values.first == 500); Good point.
7 years, 3 months ago (2013-08-27 08:41:31 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #3 manually as r26693 (presubmit successful).
7 years, 3 months ago (2013-08-27 08:44:04 UTC) #8
srdjan
Havlak benchmark lost 14% with this CL. Could you investigate why?
7 years, 3 months ago (2013-08-28 14:48:51 UTC) #9
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-08-29 12:19:13 UTC) #10
Message was sent while issue was closed.
It's probably because it uses "new Map" a lot, and is hurt by the overhead of
using a linked hash map instead of just a hash map.
Luckily I have a change that makes linked hash maps faster too, so that should
outweigh the problem.

Powered by Google App Engine
This is Rietveld 408576698