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

Issue 2867083002: Move the new WebUI's code to read the data off the IO thread as it's generally from the memory-mapp… (Closed)

Created:
3 years, 7 months ago by jam
Modified:
3 years, 7 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the new WebUI's code to read the data off the IO thread as it's generally from the memory-mapped resource file. To avoid extra thread hops, I call (and bind) URLLoaderClient on the thread where we do the reads. I've found it easier to read to remove the URLLoaderImpl and just pass the required data to static methods. BUG=717714 Review-Url: https://codereview.chromium.org/2867083002 Cr-Commit-Position: refs/heads/master@{#470082} Committed: https://chromium.googlesource.com/chromium/src/+/165aa1cd8fb624a2f222c2049edd5b1b48597b63

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments and a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -185 lines) Patch
M content/browser/webui/url_data_manager_backend.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/webui/web_ui_url_loader_factory.cc View 1 3 chunks +164 lines, -184 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
jam
hey Yuzhu, this addresses the comment Matt pointed out in the previous cl. I've switched ...
3 years, 7 months ago (2017-05-08 17:45:57 UTC) #7
yzshen1
LGTM https://codereview.chromium.org/2867083002/diff/1/content/browser/webui/web_ui_url_loader_factory.cc File content/browser/webui/web_ui_url_loader_factory.cc (right): https://codereview.chromium.org/2867083002/diff/1/content/browser/webui/web_ui_url_loader_factory.cc#newcode49 content/browser/webui/web_ui_url_loader_factory.cc:49: mojo::InterfacePtrInfo<mojom::URLLoaderClient> client_info, fyi: you could use the alias ...
3 years, 7 months ago (2017-05-08 18:07:04 UTC) #8
jam
https://codereview.chromium.org/2867083002/diff/1/content/browser/webui/web_ui_url_loader_factory.cc File content/browser/webui/web_ui_url_loader_factory.cc (right): https://codereview.chromium.org/2867083002/diff/1/content/browser/webui/web_ui_url_loader_factory.cc#newcode49 content/browser/webui/web_ui_url_loader_factory.cc:49: mojo::InterfacePtrInfo<mojom::URLLoaderClient> client_info, On 2017/05/08 18:07:04, yzshen1 wrote: > fyi: ...
3 years, 7 months ago (2017-05-08 18:18:53 UTC) #9
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/2867083002/20001
3 years, 7 months ago (2017-05-08 18:20:28 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/165aa1cd8fb624a2f222c2049edd5b1b48597b63
3 years, 7 months ago (2017-05-08 19:49:11 UTC) #15
groby-ooo-7-16
On 2017/05/08 19:49:11, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) as ...
3 years, 7 months ago (2017-05-15 18:31:45 UTC) #16
jam
3 years, 7 months ago (2017-05-15 19:00:11 UTC) #17
Message was sent while issue was closed.
On 2017/05/15 18:31:45, groby wrote:
> On 2017/05/08 19:49:11, commit-bot: I haz the power wrote:
> > Committed patchset #2 (id:20001) as
> >
>
https://chromium.googlesource.com/chromium/src/+/165aa1cd8fb624a2f222c2049edd...
> 
> The read is deliberately ON the IO thread - even though it's a memory-mapped
> file, it often blocks on page-in, leading to jankiness on WebUI - see
> https://codereview.chromium.org/2268653002
> 
> Does mojo code run on a separate worker thread, or is this moving us back to
the
> UI thread?

This change moves it off BrowserThread::IO (the non-blocking IO), and onto the
(blocking) IO threads. this is to match the existing behavior.

Powered by Google App Engine
This is Rietveld 408576698