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

Issue 1660283002: Rename and modify SpdyPriorityTree. (Closed)

Created:
4 years, 10 months ago by Bence
Modified:
4 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename and modify SpdyPriorityTree. Rename SpdyPriorityTree to Http2PriorityWriteScheduler and move into http2_write_scheduler.h, to better align with PriorityWriteScheduler, which handles the equivalent role for SPDY/3. Also change code and comments to refer to streams instead of nodes. Modify Http2PriorityWriteScheduler API to be more consistent with PriorityWriteScheduler. Previously, in cases of API misuse, Http2PriorityWriteScheduler methods would return false to indicate error, in turn sometimes requiring other values to be returned via out-params. This CL makes Http2PriorityWriteScheduler use a style similar to PriorityWriteScheduler, where invalid method calls trigger DFATAL, and status is no longer reflected by return value. Modify Http2PriorityWriteScheduler so that it picks streams one at a time, as opposed to calculating a full ordering across all streams in a batch. Picking streams one at a time is necessary to match usage of existing WriteBlockedList/PriorityWriteScheduler by SPDY and QUIC code. This change also adds proper round-robining of picks across usable streams with the same priority. This CL lands server changes 112594726, 112597015, and 112782384 by mpw. BUG=488484 Committed: https://crrev.com/09c6fbd4281c0c4a5f22093f8791dddc01a50561 Cr-Commit-Position: refs/heads/master@{#373743}

Patch Set 1 #

Patch Set 2 : Fix EXPECT_DFATAL test errors on release builds. #

Patch Set 3 : Rebase. #

Patch Set 4 : unique_ptr is not allowed yet. #

Patch Set 5 : Remove premature? optimization. #

Patch Set 6 : Revert to LinkedList for performance. #

Patch Set 7 : Rebase on https://crrev.com/1668773003. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1058 lines, -814 lines) Patch
M net/spdy/http2_write_scheduler.h View 1 2 3 4 5 6 4 chunks +547 lines, -371 lines 0 comments Download
M net/spdy/http2_write_scheduler_test.cc View 1 2 3 4 5 6 11 chunks +511 lines, -443 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Bence
Ryan: PTAL. Originally I am using LinkedList and LinkNode from base/containers/linked_list.h, which is similar to ...
4 years, 10 months ago (2016-02-03 18:27:45 UTC) #2
Ryan Hamilton
lgtm
4 years, 10 months ago (2016-02-04 01:25:39 UTC) #3
Ryan Hamilton
On 2016/02/03 18:27:45, Bence wrote: > Ryan: PTAL. Originally I am using LinkedList and LinkNode ...
4 years, 10 months ago (2016-02-04 01:28:01 UTC) #4
Bence
On 2016/02/04 01:28:01, Ryan Hamilton wrote: > > I think either approach is fine. Perhaps ...
4 years, 10 months ago (2016-02-04 14:09:56 UTC) #5
Ryan Hamilton
On 2016/02/04 14:09:56, Bence wrote: > On 2016/02/04 01:28:01, Ryan Hamilton wrote: > > > ...
4 years, 10 months ago (2016-02-04 20:17:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660283002/120001
4 years, 10 months ago (2016-02-05 02:18:10 UTC) #9
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-05 04:13:29 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 04:15:07 UTC) #12
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/09c6fbd4281c0c4a5f22093f8791dddc01a50561
Cr-Commit-Position: refs/heads/master@{#373743}

Powered by Google App Engine
This is Rietveld 408576698