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

Issue 1963853004: Refactor CancelableTaskManager to use std::map. (Closed)

Created:
4 years, 7 months ago by ulan
Modified:
4 years, 7 months ago
Reviewers:
Michael Lippautz, Nico
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Refactor CancelableTaskManager to use std::map. BUG= Committed: https://crrev.com/f2d649a04b5eff397a7b598848f7ee7292ccda52 Cr-Commit-Position: refs/heads/master@{#36142}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -45 lines) Patch
M src/cancelable-task.h View 2 chunks +3 lines, -2 lines 1 comment Download
M src/cancelable-task.cc View 1 3 chunks +20 lines, -43 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
ulan
ptal
4 years, 7 months ago (2016-05-10 12:12:16 UTC) #2
Michael Lippautz
lgtm, thanks a lot!
4 years, 7 months ago (2016-05-10 12:18:22 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963853004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963853004/1
4 years, 7 months ago (2016-05-10 12:20:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963853004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963853004/20001
4 years, 7 months ago (2016-05-10 12:26:37 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-10 12:59:16 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f2d649a04b5eff397a7b598848f7ee7292ccda52 Cr-Commit-Position: refs/heads/master@{#36142}
4 years, 7 months ago (2016-05-10 12:59:30 UTC) #12
Nico
https://codereview.chromium.org/1963853004/diff/20001/src/cancelable-task.h File src/cancelable-task.h (right): https://codereview.chromium.org/1963853004/diff/20001/src/cancelable-task.h#newcode55 src/cancelable-task.h:55: std::map<uint32_t, Cancelable*> cancelable_tasks_; (if you don't need to ordering ...
4 years, 7 months ago (2016-05-11 13:04:24 UTC) #14
ulan
4 years, 7 months ago (2016-05-11 16:56:28 UTC) #15
Message was sent while issue was closed.
On 2016/05/11 13:04:24, Nico wrote:
> https://codereview.chromium.org/1963853004/diff/20001/src/cancelable-task.h
> File src/cancelable-task.h (right):
> 
>
https://codereview.chromium.org/1963853004/diff/20001/src/cancelable-task.h#n...
> src/cancelable-task.h:55: std::map<uint32_t, Cancelable*> cancelable_tasks_;
> (if you don't need to ordering -- and given this was a HashMap before you
might
> not need it -- you could use std::unordered_map as well)

Thanks for the tip, Nico. I agree that unordered_map would fit better here.
I'll check with the team if we can start using unordered_map in V8.

Powered by Google App Engine
This is Rietveld 408576698