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

Issue 27510002: Add a much simplified set implementation designed to waste little memory for small sets. (Closed)

Created:
7 years, 2 months ago by kasperl
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a much simplified set implementation designed to waste little memory for small sets. Use the new set (called setlet) in the type inferrer. I'd be happy to get rid of this specialized implementation if we ever get a core library implementation that is equally small and fast, but for now this CL reduces the working set with 15% when compiling dart2js. R=ahe@google.com, lrn@google.com, lry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=28784

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address feedback. #

Total comments: 3

Messages

Total messages: 4 (0 generated)
kasperl
7 years, 2 months ago (2013-10-16 13:37:06 UTC) #1
ahe
LGTM https://codereview.chromium.org/27510002/diff/1/sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart File sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart (right): https://codereview.chromium.org/27510002/diff/1/sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart#newcode152 sdk/lib/_internal/compiler/implementation/inferrer/container_tracer.dart:152: container.elementType.assignments.forEach((each) { Perhaps you want a "addTo" method ...
7 years, 2 months ago (2013-10-16 13:57:07 UTC) #2
Lasse Reichstein Nielsen
just comments. https://codereview.chromium.org/27510002/diff/6001/sdk/lib/_internal/compiler/implementation/util/setlet.dart File sdk/lib/_internal/compiler/implementation/util/setlet.dart (right): https://codereview.chromium.org/27510002/diff/6001/sdk/lib/_internal/compiler/implementation/util/setlet.dart#newcode35 sdk/lib/_internal/compiler/implementation/util/setlet.dart:35: return (_MARKER == _contents) ? 0 : ...
7 years, 2 months ago (2013-10-16 14:53:54 UTC) #3
kasperl
7 years, 2 months ago (2013-10-17 06:31:22 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r28784 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698