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

Issue 1100923002: [cronet] Pass total bytes received to CronetUrlRequest.onSucceeded() (Closed)

Created:
5 years, 8 months ago by pauljensen
Modified:
5 years, 7 months ago
Reviewers:
mef, mmenke
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

[cronet] Pass total bytes received to CronetUrlRequest.onSucceeded() Previously onSucceeded() had to synchronize and turn around and request total bytes received. By passing it we avoid the synchronization. Committed: https://crrev.com/255fd2c4d20fb71063f9ed244c17df5063387ed2 Cr-Commit-Position: refs/heads/master@{#327334}

Patch Set 1 #

Total comments: 2

Patch Set 2 : sync #

Patch Set 3 : remove more dead code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -25 lines) Patch
M components/cronet/android/cronet_url_request_adapter.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M components/cronet/android/cronet_url_request_adapter.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java View 1 2 2 chunks +1 line, -13 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
pauljensen
Matt, PTAL. Not really a significant performance win but it's less code. :/
5 years, 8 months ago (2015-04-22 19:09:29 UTC) #2
mmenke
I'm all in favor of reducing the number of Java->C++ (And C++->Java) calls, even if ...
5 years, 8 months ago (2015-04-22 19:13:22 UTC) #3
pauljensen
I think a JNI call costs roughly one microsecond on say a Nexus 5, but ...
5 years, 8 months ago (2015-04-24 11:18:16 UTC) #4
pauljensen
On 2015/04/24 11:18:16, pauljensen wrote: > I think a JNI call costs roughly one microsecond ...
5 years, 8 months ago (2015-04-24 11:42:41 UTC) #5
mmenke
Looks like Java does have atomics. On Fri, Apr 24, 2015 at 7:42 AM, <pauljensen@chromium.org> ...
5 years, 8 months ago (2015-04-24 11:59:31 UTC) #6
pauljensen
Adding Misha to review while Matt is out.
5 years, 8 months ago (2015-04-27 17:29:07 UTC) #8
mef
lgtm
5 years, 7 months ago (2015-04-28 16:07:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100923002/40001
5 years, 7 months ago (2015-04-28 17:50:52 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-04-28 18:26:46 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 18:28:19 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/255fd2c4d20fb71063f9ed244c17df5063387ed2
Cr-Commit-Position: refs/heads/master@{#327334}

Powered by Google App Engine
This is Rietveld 408576698