--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
On what thread will we initialize webkit?
On Dec 15, 2011 8:18 PM, "Michael Nordman" <mich...@google.com> wrote:
>
>
>
> On Thu, Dec 15, 2011 at 11:01 AM, Jochen Eisinger <joc...@chromium.org> wrote:
>>
>> On what thread will we initialize webkit?
>
>
> True, that we will have to call init on it in order to use things like WebSecurityOrigin (so global icu tables get initialized and such) but it shouldn't really matter what thread that's done on...once http://codereview.chromium.org/8416019/ lands, an arbitrary background thread should suffice.
We could also consider doing something like in the renderer, i.e. invoking ensureWebKitInitialized every time before calling into WebKit
On Thu, Dec 15, 2011 at 11:01 AM, Jochen Eisinger <joc...@chromium.org> wrote:On what thread will we initialize webkit?True, that we will have to call init on it in order to use things like WebSecurityOrigin (so global icu tables get initialized and such) but it shouldn't really matter what thread that's done on...once http://codereview.chromium.org/8416019/ lands, an arbitrary background thread should suffice.
I know there is a plan to rework the IndexedDB backend for this, but it seems like LocalStorage needs similar treatment. Do you plan to help rework the LocalStorage backend?
On 15 December 2011 19:18, Michael Nordman <mich...@google.com> wrote:On Thu, Dec 15, 2011 at 11:01 AM, Jochen Eisinger <joc...@chromium.org> wrote:On what thread will we initialize webkit?True, that we will have to call init on it in order to use things like WebSecurityOrigin (so global icu tables get initialized and such) but it shouldn't really matter what thread that's done on...once http://codereview.chromium.org/8416019/ lands, an arbitrary background thread should suffice.Ah, thanks.In a completely different effort, I'd found that WebKit::initialize was taking a descent chunk of time (~60ms in my config) and currently blocks our UI thread early in startup (as it's done in InternalWebKitThread::Init() which is synchronous wrt to the caller's thread start call)However the simple fix (http://codereview.chromium.org/7888023) to make it async would randomly fail on try bots, because of these WebSecurityOrigin / icu table implicit dependencies I presume.
I know there is a plan to rework the IndexedDB backend for this, but it seems like LocalStorage needs similar treatment. Do you plan to help rework the LocalStorage backend?
On Thu, Dec 15, 2011 at 11:27 AM, Darin Fisher <da...@chromium.org> wrote:I know there is a plan to rework the IndexedDB backend for this, but it seems like LocalStorage needs similar treatment. Do you plan to help rework the LocalStorage backend?We've been trading mail about that, andrei volunteered ben to help with some of this, i'd be willing to spend time on it too.There is no concrete plan of what to do by when just yet. The important thing for clank is to nuke the dependency on webcore/webkit_thread, other things (like switching the leveldb and adding a decent caching layer) are secondary. I'm thinking the first round of removing those webkit dependencies can be done w/o changing webkit APIs or data formats on disk.
On Thu, Dec 15, 2011 at 11:01 AM, Jochen Eisinger <joc...@chromium.org> wrote:On what thread will we initialize webkit?True, that we will have to call init on it in order to use things like WebSecurityOrigin (so global icu tables get initialized and such) but it shouldn't really matter what thread that's done on...once http://codereview.chromium.org/8416019/ lands, an arbitrary background thread should suffice.
dave
dave