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

Issue 18405007: Move IOThread initialization to happen asynchronously. (Closed)

Created:
7 years, 5 months ago by Maria
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Yaron
Visibility:
Public.

Description

Move IOThread initialization to happen asynchronously. Speeds up the main thread initialization by having the first task on IOThread initialize itself instead of blocking the main thread for this. This allows the start-up to happen faster. BUG=258231

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -36 lines) Patch
M chrome/browser/io_thread.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 6 chunks +37 lines, -36 lines 4 comments Download

Messages

Total messages: 15 (0 generated)
Maria
Hi, I am moving the IO thread initialization to happen asynchronously as the first task ...
7 years, 5 months ago (2013-07-09 22:45:35 UTC) #1
jam
ah, this is a great idea. you're right, no need to block UI thread on ...
7 years, 5 months ago (2013-07-10 01:10:48 UTC) #2
mariakhomenko
I am timing it on an android release build on Nexus S and it's taking ...
7 years, 5 months ago (2013-07-10 01:21:45 UTC) #3
willchan no longer on Chromium
Does this work? I'd expect a few minor (fixable) threading gotchas. I'm traveling right now ...
7 years, 5 months ago (2013-07-10 07:50:54 UTC) #4
Maria
7 years, 5 months ago (2013-07-10 08:38:47 UTC) #5
awong
looks not good to me Thanks for trying to tackle this. I have some concerns ...
7 years, 5 months ago (2013-07-10 17:54:49 UTC) #6
awong
not LGTM (once more with the correct rietveld keywords :-/) On 2013/07/10 17:54:49, awong wrote: ...
7 years, 5 months ago (2013-07-10 17:56:31 UTC) #7
jam
On 2013/07/10 17:54:49, awong wrote: > looks not good to me > > Thanks for ...
7 years, 5 months ago (2013-07-10 17:58:43 UTC) #8
awong
https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc#newcode618 chrome/browser/io_thread.cc:618: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); This confuses me... My understanding of the original ...
7 years, 5 months ago (2013-07-10 18:45:47 UTC) #9
mmenke
https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc#newcode505 chrome/browser/io_thread.cc:505: .reset(CreateDefaultAuthHandlerFactory(globals_->host_resolver.get())); nit: For all of these, it's much more ...
7 years, 5 months ago (2013-07-10 18:48:24 UTC) #10
mmenke
https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/18405007/diff/1/chrome/browser/io_thread.cc#newcode505 chrome/browser/io_thread.cc:505: .reset(CreateDefaultAuthHandlerFactory(globals_->host_resolver.get())); On 2013/07/10 18:48:24, mmenke wrote: > nit: For ...
7 years, 5 months ago (2013-07-10 18:51:04 UTC) #11
awong
On 2013/07/10 17:58:43, jam wrote: > On 2013/07/10 17:54:49, awong wrote: > > looks not ...
7 years, 5 months ago (2013-07-10 19:01:07 UTC) #12
mariakhomenko
Albert, Re: changing the BrowserThreadDelegate contract. It seems like the other user of BrowserThreadDelegate is ...
7 years, 5 months ago (2013-07-10 21:28:11 UTC) #13
awong
On 2013/07/10 21:28:11, mariakhomenko_google.com wrote: > Albert, > > Re: changing the BrowserThreadDelegate contract. It ...
7 years, 5 months ago (2013-07-10 22:02:52 UTC) #14
mmenke
7 years, 5 months ago (2013-07-11 14:38:41 UTC) #15
On 2013/07/10 21:28:11, mariakhomenko_google.com wrote:
> Albert,
> 
> Re: changing the BrowserThreadDelegate contract. It seems like the other
> user of BrowserThreadDelegate is AwUrlRequestContextGetter here:
>
https://code.google.com/p/chromium/codesearch#chromium/src/android_webview/br...
> .
> And there's a comment that it depends on being synchronous for
> CookieMonster. Perhaps you can comment on this?
> 
> Matt,
> 
> I've got the indentation that I did by running clang formatter on the
> function that I extracted. I saw a discussion on chromium-dev to the effect
> that we want to move
> towards uniformly formatted code. I thought clang formatter created
> acceptable style, but I can revert that change if you prefer.

I think this line breaking is sufficiently different from the rest of the code
base that it's worth manually fixing.

Powered by Google App Engine
This is Rietveld 408576698