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

Issue 2776583004: Use 64kb read buffer in CRNHttpProtocolHandler on iOS. (Closed)

Created:
3 years, 9 months ago by mef
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ios-reviews_chromium.org, net-reviews_chromium.org, lilyhoughton
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use 64kb instead of 4kb read buffer in CRNHttpProtocolHandler on iOS. This reduces number of reads and reallocations if UrlRequest::Read has more data available. Change QuicTestServer to return simple response without HTTP/2 trailers, so it doesn't break the QuicHttpStream. BUG=706515 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:ios-simulator-cronet Review-Url: https://codereview.chromium.org/2776583004 Cr-Commit-Position: refs/heads/master@{#465738} Committed: https://chromium.googlesource.com/chromium/src/+/054d4e484b45c4c7872eec3459ccb1c5f85a3b1e

Patch Set 1 #

Patch Set 2 : Remove unused stuff. #

Patch Set 3 : Don't use QUIC trailers to avoid QUIC_PROTOCOL_ERROR when cache is disabled. #

Patch Set 4 : Decrease read buffer to 64k per request. #

Patch Set 5 : Self review and cleanup. #

Total comments: 15

Patch Set 6 : Address Andrei's comments, use RawHttpResponse. #

Total comments: 4

Patch Set 7 : Few more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -23 lines) Patch
M components/cronet/ios/test/cronet_http_test.mm View 1 2 3 4 5 6 6 chunks +62 lines, -20 lines 0 comments Download
M components/cronet/ios/test/start_cronet.mm View 3 1 chunk +1 line, -0 lines 0 comments Download
M components/cronet/ios/test/test_server.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M components/cronet/ios/test/test_server.cc View 1 2 3 4 5 6 5 chunks +44 lines, -0 lines 0 comments Download
M components/grpc_support/test/quic_test_server.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M components/grpc_support/test/quic_test_server.cc View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M ios/net/crn_http_protocol_handler.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (21 generated)
mef
PTAL. The read buffer size increase gets this synthetic test to perform better than platform ...
3 years, 8 months ago (2017-04-14 19:05:53 UTC) #12
kapishnikov
https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm File components/cronet/ios/test/cronet_http_test.mm (right): https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm#newcode59 components/cronet/ios/test/cronet_http_test.mm:59: [_responseData dealloc]; Are the test compiled under ARC? If ...
3 years, 8 months ago (2017-04-19 16:14:17 UTC) #15
mef
Thanks, PTAL. https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm File components/cronet/ios/test/cronet_http_test.mm (right): https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm#newcode59 components/cronet/ios/test/cronet_http_test.mm:59: [_responseData dealloc]; On 2017/04/19 16:14:16, kapishnikov wrote: ...
3 years, 8 months ago (2017-04-19 17:39:10 UTC) #16
kapishnikov
https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm File components/cronet/ios/test/cronet_http_test.mm (right): https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm#newcode59 components/cronet/ios/test/cronet_http_test.mm:59: [_responseData dealloc]; On 2017/04/19 17:39:09, mef wrote: > On ...
3 years, 8 months ago (2017-04-19 18:19:01 UTC) #17
mef
Thanks, PTAL! https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm File components/cronet/ios/test/cronet_http_test.mm (right): https://codereview.chromium.org/2776583004/diff/80001/components/cronet/ios/test/cronet_http_test.mm#newcode59 components/cronet/ios/test/cronet_http_test.mm:59: [_responseData dealloc]; On 2017/04/19 18:19:01, kapishnikov wrote: ...
3 years, 8 months ago (2017-04-19 19:04:48 UTC) #18
kapishnikov
lgtm
3 years, 8 months ago (2017-04-19 19:12:10 UTC) #21
mef
Elly, could you OWNER-approve ios/net/crn_http_protocol_handler.mm? The small read buffer size causes constant reallocations of NSData ...
3 years, 8 months ago (2017-04-19 20:28:54 UTC) #25
Elly Fong-Jones
ios/net lgtm
3 years, 8 months ago (2017-04-19 20:30:25 UTC) #26
mef
Thanks!
3 years, 8 months ago (2017-04-19 20:32:10 UTC) #27
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/2776583004/120001
3 years, 8 months ago (2017-04-19 20:33:09 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 20:41:34 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/054d4e484b45c4c7872eec3459cc...

Powered by Google App Engine
This is Rietveld 408576698