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

Issue 2860813004: Change TaskQueueImpl to use a Deque with an inline capacity of 8 (Closed)

Created:
3 years, 7 months ago by alex clarke (OOO till 29th)
Modified:
3 years, 7 months ago
Reviewers:
haraken, Sami
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change TaskQueueImpl to use a Deque with an inline capacity of 8 A speculative change that might help mitigate problems with WTF::Deque::expandCapacity which sometimes takes over a second due to heavy load on PartitionAlloc. I'm hoping in normal operation the default_tq doesn't get more than a handful of tasks (a quick trace of handouts on a high end pc suggests the queue depth is <= 3) which would let us avoid dynamic allocations entirely. BUG=710245 Review-Url: https://codereview.chromium.org/2860813004 Cr-Commit-Position: refs/heads/master@{#469302} Committed: https://chromium.googlesource.com/chromium/src/+/05864d5cb320715302b6d39f88728ff0a8776378

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 2 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (11 generated)
alex clarke (OOO till 29th)
PTAL
3 years, 7 months ago (2017-05-04 09:50:08 UTC) #8
Sami
lgtm, thanks!
3 years, 7 months ago (2017-05-04 09:59:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2860813004/1
3 years, 7 months ago (2017-05-04 10:02:48 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/05864d5cb320715302b6d39f88728ff0a8776378
3 years, 7 months ago (2017-05-04 10:07:56 UTC) #15
haraken
3 years, 7 months ago (2017-05-04 14:49:00 UTC) #16
Message was sent while issue was closed.
LGTM, thanks for the fix!

Powered by Google App Engine
This is Rietveld 408576698