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

Issue 11644088: SPDY - implement greedy approach to read all the data and process it (Closed)

Created:
8 years ago by ramant (doing other things)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, willchan no longer on Chromium
Visibility:
Public.

Description

SPDY - implement greedy approach to read all the data and process it from the ClientSocket until we block. This is more of a first cut at the greedy approach to see if it improves the performance on the mobile. spdy_session_test_util.* files have the common code between SpdySessionSpd2Test and SpdySessionSpd3Test. Will move other common code in a separate CL. Created this file to reduce errors and to avoid duplicating of code. R=willchan BUG=166958 TEST=network unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181390

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 16

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Total comments: 12

Patch Set 25 : #

Patch Set 26 : #

Patch Set 27 : #

Patch Set 28 : #

Patch Set 29 : #

Patch Set 30 : #

Patch Set 31 : #

Patch Set 32 : #

Total comments: 6

Patch Set 33 : #

Patch Set 34 : #

Patch Set 35 : #

Total comments: 24

Patch Set 36 : #

Patch Set 37 : #

Patch Set 38 : #

Patch Set 39 : #

Patch Set 40 : #

Total comments: 10

Patch Set 41 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+817 lines, -81 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 7 chunks +34 lines, -11 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 13 chunks +84 lines, -70 lines 0 comments Download
M net/spdy/spdy_session_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +305 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +308 lines, -0 lines 0 comments Download
A net/spdy/spdy_session_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +46 lines, -0 lines 0 comments Download
A net/spdy/spdy_session_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
willchan no longer on Chromium
Redirecting to Ryan. Btw, does this handle the case where we try to Read() more ...
8 years ago (2012-12-24 00:19:35 UTC) #1
willchan no longer on Chromium
8 years ago (2012-12-24 00:19:45 UTC) #2
Ryan Sleevi
To answer will's comment: Yes, it does. That's because this does a loop for (Read ...
8 years ago (2012-12-24 05:38:44 UTC) #3
Ryan Hamilton
https://chromiumcodereview.appspot.com/11644088/diff/16001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://chromiumcodereview.appspot.com/11644088/diff/16001/net/spdy/spdy_session.cc#newcode909 net/spdy/spdy_session.cc:909: } while (result == OK && can_do_more); On 2012/12/24 ...
7 years, 12 months ago (2012-12-24 15:26:35 UTC) #4
willchan no longer on Chromium
On Sun, Dec 23, 2012 at 9:38 PM, <rsleevi@chromium.org> wrote: > To answer will's comment: ...
7 years, 12 months ago (2012-12-24 16:45:10 UTC) #5
Ryan Sleevi
The *number* of callbacks is a separate issue. With this CL, we should be issuing ...
7 years, 12 months ago (2012-12-24 17:38:41 UTC) #6
Ryan Sleevi
And the answer is that: Yes, this WILL reduce the number of callbacks. While SpdyStream ...
7 years, 12 months ago (2012-12-24 18:22:27 UTC) #7
ramant (doing other things)
On 2012/12/24 18:22:27, Ryan Sleevi wrote: > And the answer is that: Yes, this WILL ...
7 years, 12 months ago (2012-12-24 19:25:55 UTC) #8
ramant (doing other things)
On 2012/12/24 19:25:55, ramant wrote: > On 2012/12/24 18:22:27, Ryan Sleevi wrote: > > And ...
7 years, 12 months ago (2012-12-24 19:36:05 UTC) #9
Ryan Sleevi
On Dec 24, 2012 11:25 AM, <rtenneti@chromium.org> wrote: > > Reviewers: willchan, Ryan Hamilton, Ryan ...
7 years, 12 months ago (2012-12-24 19:38:18 UTC) #10
Ryan Sleevi
On Dec 24, 2012 11:36 AM, <rtenneti@chromium.org> wrote: > > On 2012/12/24 19:25:55, ramant wrote: ...
7 years, 12 months ago (2012-12-24 19:40:28 UTC) #11
ramant (doing other things)
>Flow control is supposed to handle this ... > Do you have reason to believe ...
7 years, 12 months ago (2012-12-24 19:47:20 UTC) #12
ramant (doing other things)
You are 100% correct and no disagreements (I am slightly paranoid and wanted to prove ...
7 years, 12 months ago (2012-12-24 19:51:39 UTC) #13
willchan no longer on Chromium
OH man, you terrified me when you said sleep(1)! http://linux.die.net/man/3/sleep says it's seconds. I checked ...
7 years, 12 months ago (2012-12-24 19:59:59 UTC) #14
jar (doing other things)
On 2012/12/24 19:40:28, Ryan Sleevi wrote: > ... > Flow control is supposed to handle ...
7 years, 12 months ago (2012-12-26 21:07:20 UTC) #15
Ryan Sleevi
On 2012/12/26 21:07:20, jar wrote: > On 2012/12/24 19:40:28, Ryan Sleevi wrote: > > ...
7 years, 12 months ago (2012-12-26 22:49:59 UTC) #16
Ryan Sleevi
https://chromiumcodereview.appspot.com/11644088/diff/23002/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://chromiumcodereview.appspot.com/11644088/diff/23002/net/spdy/spdy_session.cc#newcode802 net/spdy/spdy_session.cc:802: } while (io_state_ != STATE_NONE && result != ERR_IO_PENDING); ...
7 years, 12 months ago (2012-12-27 05:29:48 UTC) #17
ramant (doing other things)
Added TRACE_EVENT in the latest patch (will remove them before submitting it). rch and I ...
7 years, 12 months ago (2012-12-29 03:02:20 UTC) #18
Ryan Hamilton
The logic here is subtle. Please add a unit test which verifies that SpdySession wil ...
7 years, 11 months ago (2012-12-29 18:41:51 UTC) #19
Ryan Hamilton
The logic here is subtle. Please add a unit test which verifies that SpdySession wil ...
7 years, 11 months ago (2012-12-29 18:41:54 UTC) #20
ramant (doing other things)
PTAL. https://codereview.chromium.org/11644088/diff/50005/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/11644088/diff/50005/net/spdy/spdy_session.cc#newcode375 net/spdy/spdy_session.cc:375: net::Error error = static_cast<net::Error>(DoLoop(OK)); On 2012/12/29 18:41:52, Ryan ...
7 years, 11 months ago (2013-01-16 00:31:58 UTC) #21
Ryan Hamilton
Other than the test, this looks good. I'm not sure, however, that these tests verify ...
7 years, 11 months ago (2013-01-19 00:32:13 UTC) #22
ramant (doing other things)
Hi Ryan, Would appreciate if you could take another look. What do you think of ...
7 years, 10 months ago (2013-02-04 18:30:46 UTC) #23
Ryan Hamilton
Looks reasonable. https://codereview.chromium.org/11644088/diff/166011/net/spdy/spdy_session_spdy2_unittest.cc File net/spdy/spdy_session_spdy2_unittest.cc (right): https://codereview.chromium.org/11644088/diff/166011/net/spdy/spdy_session_spdy2_unittest.cc#newcode202 net/spdy/spdy_session_spdy2_unittest.cc:202: bool posted_; I think I might be ...
7 years, 10 months ago (2013-02-05 05:03:45 UTC) #24
ramant (doing other things)
hi rch@, Made all the changes you have suggested. PTAL. thanks. https://codereview.chromium.org/11644088/diff/166011/net/spdy/spdy_session_spdy2_unittest.cc File net/spdy/spdy_session_spdy2_unittest.cc (right): ...
7 years, 10 months ago (2013-02-05 20:43:43 UTC) #25
Ryan Hamilton
lgtm sleevi: do you want to take a look?
7 years, 10 months ago (2013-02-06 20:07:31 UTC) #26
Ryan Sleevi
https://codereview.chromium.org/11644088/diff/197001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/11644088/diff/197001/net/spdy/spdy_session.cc#newcode255 net/spdy/spdy_session.cc:255: bytes_read_(0), I'm still not sure I understand why we ...
7 years, 10 months ago (2013-02-06 23:04:46 UTC) #27
ramant (doing other things)
Hi sleevi, Added comments. Deleted read_pending_. IMO, with this CL, we don't need this protection ...
7 years, 10 months ago (2013-02-07 02:11:07 UTC) #28
Ryan Sleevi
Mostly LGTM, but some comments below. If the follow-up test I'm requesting requires big changes ...
7 years, 10 months ago (2013-02-07 02:43:50 UTC) #29
ramant (doing other things)
Thanks very much sleevi for your comments. Added a TODO for DeterministicSocketData changes (wrote the ...
7 years, 10 months ago (2013-02-07 20:03:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/11644088/200004
7 years, 10 months ago (2013-02-07 20:04:30 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=109579
7 years, 10 months ago (2013-02-07 21:26:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/11644088/200004
7 years, 10 months ago (2013-02-07 22:09:18 UTC) #33
commit-bot: I haz the power
7 years, 10 months ago (2013-02-08 00:44:49 UTC) #34
Message was sent while issue was closed.
Change committed as 181390

Powered by Google App Engine
This is Rietveld 408576698