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

Issue 99203010: Alternative Timer implementation using simply list-based priority heap. (Closed)

Created:
7 years ago by Anders Johnsen
Modified:
7 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Alternative Timer implementation using simply list-based priority heap. The current implementation is not memory-optimized yet, to make it easier to review. BUG= R=fschneider@google.com, lrn@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=31132 Committed: https://code.google.com/p/dart/source/detail?r=31158

Patch Set 1 #

Total comments: 38

Patch Set 2 : Clean up / review update. #

Total comments: 4

Patch Set 3 : Cleanup and fix flow-graph optimizer to not hoist guard fields (works around a VM crash). #

Total comments: 1

Patch Set 4 : Add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -77 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/io/timer_impl.dart View 1 2 6 chunks +198 lines, -76 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Anders Johnsen
7 years ago (2013-12-11 16:23:45 UTC) #1
Søren Gjesse
lgtm https://codereview.chromium.org/99203010/diff/1/sdk/lib/io/timer_impl.dart File sdk/lib/io/timer_impl.dart (right): https://codereview.chromium.org/99203010/diff/1/sdk/lib/io/timer_impl.dart#newcode6 sdk/lib/io/timer_impl.dart:6: Please provide a short description of the data ...
7 years ago (2013-12-12 08:11:52 UTC) #2
Lasse Reichstein Nielsen
We need benchmarks where this can actually be measured. Which is hard, because timers are ...
7 years ago (2013-12-12 09:57:19 UTC) #3
Lasse Reichstein Nielsen
and LGTM too.
7 years ago (2013-12-12 10:34:46 UTC) #4
Anders Johnsen
https://codereview.chromium.org/99203010/diff/1/sdk/lib/io/timer_impl.dart File sdk/lib/io/timer_impl.dart (right): https://codereview.chromium.org/99203010/diff/1/sdk/lib/io/timer_impl.dart#newcode6 sdk/lib/io/timer_impl.dart:6: On 2013/12/12 08:11:52, Søren Gjesse wrote: > Please provide ...
7 years ago (2013-12-13 13:47:54 UTC) #5
Anders Johnsen
Committed patchset #2 manually as r31132 (presubmit successful).
7 years ago (2013-12-13 13:48:11 UTC) #6
Lasse Reichstein Nielsen
Too-late comments :) https://codereview.chromium.org/99203010/diff/20001/sdk/lib/io/timer_impl.dart File sdk/lib/io/timer_impl.dart (right): https://codereview.chromium.org/99203010/diff/20001/sdk/lib/io/timer_impl.dart#newcode52 sdk/lib/io/timer_impl.dart:52: var last = _list[_used]; Consider wrapping ...
7 years ago (2013-12-13 14:07:20 UTC) #7
Anders Johnsen
PTAL, I'll recommit this under this CL, with new LGTMs. https://codereview.chromium.org/99203010/diff/20001/sdk/lib/io/timer_impl.dart File sdk/lib/io/timer_impl.dart (right): https://codereview.chromium.org/99203010/diff/20001/sdk/lib/io/timer_impl.dart#newcode52 ...
7 years ago (2013-12-16 12:36:14 UTC) #8
Florian Schneider
VM part lgtm. https://codereview.chromium.org/99203010/diff/40001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/99203010/diff/40001/runtime/vm/flow_graph_optimizer.cc#newcode4402 runtime/vm/flow_graph_optimizer.cc:4402: !current->IsGuardField()) { Please add TODO(15652): Hoisting ...
7 years ago (2013-12-16 12:41:29 UTC) #9
Søren Gjesse
lgtm
7 years ago (2013-12-16 12:55:22 UTC) #10
Anders Johnsen
7 years ago (2013-12-16 12:56:44 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r31158 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698