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

Issue 24082006: [Android WebView] Make InputStreamImpl::Read fill the IOBuffer. (Closed)

Created:
7 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, benm (inactive), joth
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[Android WebView] Make InputStreamImpl::Read fill the IOBuffer. This CL improves the performances of InputStreamImpl::Read. The previous implementation was limiting each Read to transfer at most 4k. This CL makes it possible to fill, in a single run, the IOBuffer up to the length provided by the caller. In practice this will reduces the number of thread hops and IPCs. Note: the max transfer size, at this point, is imited onlt by the kMaxAllocationSize constant defined in async_resounrce_handler.cc. BUG=294367 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224056

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added tests + nits. #

Patch Set 3 : Fixed tests #

Patch Set 4 : Remove EOF #

Total comments: 6

Patch Set 5 : Nits #

Total comments: 2

Patch Set 6 : Fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -36 lines) Patch
M android_webview/native/input_stream_impl.cc View 1 2 3 4 1 chunk +35 lines, -33 lines 0 comments Download
M android_webview/native/input_stream_unittest.cc View 1 2 3 4 5 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Primiano Tucci (use gerrit)
7 years, 3 months ago (2013-09-18 19:56:24 UTC) #1
joth
seems reasonable, but I didn't read every single line... (this has unit tests.... is there ...
7 years, 3 months ago (2013-09-18 20:05:59 UTC) #2
mkosiba (inactive)
LGTM Thanks for fixing my slow code :) https://codereview.chromium.org/24082006/diff/1/android_webview/native/input_stream_impl.cc File android_webview/native/input_stream_impl.cc (right): https://codereview.chromium.org/24082006/diff/1/android_webview/native/input_stream_impl.cc#newcode103 android_webview/native/input_stream_impl.cc:103: if ...
7 years, 3 months ago (2013-09-18 21:14:16 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/24082006/diff/1/android_webview/native/input_stream_impl.cc File android_webview/native/input_stream_impl.cc (right): https://codereview.chromium.org/24082006/diff/1/android_webview/native/input_stream_impl.cc#newcode103 android_webview/native/input_stream_impl.cc:103: if (!eof) { On 2013/09/18 21:14:17, mkosiba wrote: > ...
7 years, 3 months ago (2013-09-19 01:01:04 UTC) #4
joth
lgtm https://codereview.chromium.org/24082006/diff/16001/android_webview/native/input_stream_impl.cc File android_webview/native/input_stream_impl.cc (right): https://codereview.chromium.org/24082006/diff/16001/android_webview/native/input_stream_impl.cc#newcode99 android_webview/native/input_stream_impl.cc:99: break; nit: I'd put \n after each these ...
7 years, 3 months ago (2013-09-19 01:11:58 UTC) #5
Primiano Tucci (use gerrit)
https://codereview.chromium.org/24082006/diff/16001/android_webview/native/input_stream_impl.cc File android_webview/native/input_stream_impl.cc (right): https://codereview.chromium.org/24082006/diff/16001/android_webview/native/input_stream_impl.cc#newcode99 android_webview/native/input_stream_impl.cc:99: break; On 2013/09/19 01:11:58, joth wrote: > nit: I'd ...
7 years, 3 months ago (2013-09-19 01:48:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/24082006/22001
7 years, 3 months ago (2013-09-19 01:54:54 UTC) #7
mkosiba (inactive)
https://codereview.chromium.org/24082006/diff/22001/android_webview/native/input_stream_unittest.cc File android_webview/native/input_stream_unittest.cc (right): https://codereview.chromium.org/24082006/diff/22001/android_webview/native/input_stream_unittest.cc#newcode110 android_webview/native/input_stream_unittest.cc:110: const int bytes_requested = 16 * 1024; sorry for ...
7 years, 3 months ago (2013-09-19 01:58:01 UTC) #8
Primiano Tucci (use gerrit)
https://codereview.chromium.org/24082006/diff/22001/android_webview/native/input_stream_unittest.cc File android_webview/native/input_stream_unittest.cc (right): https://codereview.chromium.org/24082006/diff/22001/android_webview/native/input_stream_unittest.cc#newcode110 android_webview/native/input_stream_unittest.cc:110: const int bytes_requested = 16 * 1024; On 2013/09/19 ...
7 years, 3 months ago (2013-09-19 01:58:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/24082006/28001
7 years, 3 months ago (2013-09-19 01:59:15 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 06:17:55 UTC) #11
Message was sent while issue was closed.
Change committed as 224056

Powered by Google App Engine
This is Rietveld 408576698