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

Issue 651163002: Script streaming: Add an option to make the main thread block (wait for parsing) (Closed)

Created:
6 years, 2 months ago by marja
Modified:
4 years, 7 months ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Script streaming: Add an option to make the main thread block (wait for parsing) This makes the main thread block and wait for the parser thread when all the script data has arrived. The goal is to ensure that the script (which can now be compiled) will get the main thread's attention as soon as possible. This feature is temporary: The usefulness of blocking will be evaluated with Finch, and this option will be removed (blocking will be always enabled or never enabled, based on which option turns out to be better). R=haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184277

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : more versatile options #

Total comments: 2

Patch Set 4 : code review (jochen@, skyostil@) #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -37 lines) Patch
M Source/bindings/core/v8/ScriptStreamer.h View 1 2 3 5 chunks +19 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 9 chunks +74 lines, -23 lines 8 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 2 11 chunks +15 lines, -8 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerThread.cpp View 1 chunk +1 line, -3 lines 0 comments Download
A Source/bindings/core/v8/ScriptStreamingMode.h View 1 2 1 chunk +25 lines, -0 lines 2 comments Download
M Source/bindings/core/v8/v8.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
marja
haraken, ptal. This code is slightly more complicated than I'd like to... :/ It's tricky ...
6 years, 2 months ago (2014-10-14 09:22:10 UTC) #1
marja
And, in addition, the background is that jochen@ says making the main thread block might ...
6 years, 2 months ago (2014-10-14 09:23:50 UTC) #2
haraken
On 2014/10/14 09:23:50, marja wrote: > And, in addition, the background is that jochen@ says ...
6 years, 2 months ago (2014-10-14 14:05:17 UTC) #3
marja
On 2014/10/14 14:05:17, haraken wrote: > On 2014/10/14 09:23:50, marja wrote: > > And, in ...
6 years, 2 months ago (2014-10-14 14:22:52 UTC) #4
kouhei (in TOK)
+Sami I think scheduler should help here. Blink scheduler can prioritize certain task over other ...
6 years, 2 months ago (2014-10-14 14:26:35 UTC) #6
marja
On 2014/10/14 14:26:35, kouhei wrote: > +Sami > > I think scheduler should help here. ...
6 years, 2 months ago (2014-10-14 14:37:06 UTC) #7
Sami
I guess you're trying to improve page load time with this patch? I think I ...
6 years, 2 months ago (2014-10-15 13:11:51 UTC) #10
Sami
Forgot to ask, is there some specific thing on the main thread you're hoping to ...
6 years, 2 months ago (2014-10-15 13:13:10 UTC) #11
marja
I still don't get how this can work w/ priorities. The main thread will pick ...
6 years, 2 months ago (2014-10-15 13:21:03 UTC) #12
marja
Hmm, so one thing I should've probably mentioned explicitly is that in my experiments, the ...
6 years, 2 months ago (2014-10-15 13:26:38 UTC) #13
Sami
On 2014/10/15 13:21:03, marja wrote: > I still don't get how this can work w/ ...
6 years, 2 months ago (2014-10-15 14:04:16 UTC) #14
marja
Hi, sorry for delay, let's re-ignite the discussions here. First, the state of art now: ...
6 years, 2 months ago (2014-10-23 08:25:39 UTC) #15
rmcilroy
On 2014/10/23 08:25:39, marja wrote: > Hi, sorry for delay, let's re-ignite the discussions here. ...
6 years, 2 months ago (2014-10-23 09:10:30 UTC) #17
rmcilroy
On 2014/10/23 09:10:30, rmcilroy wrote: > On 2014/10/23 08:25:39, marja wrote: > > Hi, sorry ...
6 years, 2 months ago (2014-10-23 09:27:58 UTC) #18
jochen (gone - plz use gerrit)
lgtm with nit https://codereview.chromium.org/651163002/diff/40001/Source/bindings/core/v8/ScriptStreamer.h File Source/bindings/core/v8/ScriptStreamer.h (right): https://codereview.chromium.org/651163002/diff/40001/Source/bindings/core/v8/ScriptStreamer.h#newcode99 Source/bindings/core/v8/ScriptStreamer.h:99: ScriptStreamer(ScriptResource*, v8::ScriptCompiler::StreamedSource::Encoding, PendingScript::Type, bool blockMainThreadAfterLoading); nit. ...
6 years, 2 months ago (2014-10-23 09:40:59 UTC) #19
Sami
I agree with Ross that this seems like a good first step. One thing I'd ...
6 years, 2 months ago (2014-10-23 12:09:13 UTC) #20
marja
Thanks for review! Re: adding a trace event: Yes, that's a good idea, so added ...
6 years, 2 months ago (2014-10-23 14:11:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651163002/60001
6 years, 2 months ago (2014-10-23 14:13:10 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 184277
6 years, 2 months ago (2014-10-23 15:23:40 UTC) #24
haraken
LGTM https://codereview.chromium.org/651163002/diff/60001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/651163002/diff/60001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode231 Source/bindings/core/v8/ScriptStreamer.cpp:231: MutexLocker locker(m_mutex); Let's add ASSERT(!isFinished()). https://codereview.chromium.org/651163002/diff/60001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode258 Source/bindings/core/v8/ScriptStreamer.cpp:258: MutexLocker ...
6 years, 2 months ago (2014-10-23 15:32:10 UTC) #25
marja
Thanks for comments (skyostil@, I also overlooked one code comment from you, I'm answering it ...
6 years, 2 months ago (2014-10-24 13:04:41 UTC) #26
Sami
https://codereview.chromium.org/651163002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/651163002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode324 Source/bindings/core/v8/ScriptStreamer.cpp:324: if (!isFinished()) { On 2014/10/24 13:04:40, marja wrote: > ...
6 years, 2 months ago (2014-10-24 13:15:35 UTC) #27
marja
https://codereview.chromium.org/651163002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/651163002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode324 Source/bindings/core/v8/ScriptStreamer.cpp:324: if (!isFinished()) { On 2014/10/24 13:15:35, Sami wrote: > ...
6 years, 2 months ago (2014-10-24 13:19:29 UTC) #28
yesdear24344_gmail.com
On Tuesday, October 14, 2014 at 2:22:10 AM UTC-7, ma...@chromium.org wrote: > Reviewers: haraken, > ...
4 years, 7 months ago (2016-04-28 22:53:16 UTC) #29
yesdear24344_gmail.com
4 years, 7 months ago (2016-04-28 22:55:05 UTC) #30
Message was sent while issue was closed.
What.the hell rc ? This is oc :(

-- 
You received this message because you are subscribed to the Google Groups "Blink
Reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698