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

Issue 652813004: Move speculations pump scheduling logic to HTMLParserScheduler. (Closed)

Created:
6 years, 2 months ago by kouhei (in TOK)
Modified:
6 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Move speculations pump scheduling logic to HTMLParserScheduler. Before this CL, HTMLDocumentParser pumped speculations with its scheduling logic inlined into HTMLDocumentParser::pumpPendingSpeculations. This CL moves the scheduling logic into HTMLParserScheduler. This CL also adds SpeculationsPumpSession to manage its startTime. From this change, ActiveParserSession scope was moved from processParsedChunkFromBackgroundParser to its only caller pumpPendingSpeculations. BUG=421300 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184044

Patch Set 1 #

Patch Set 2 : compilefix #

Total comments: 4

Patch Set 3 : const #

Total comments: 1

Patch Set 4 : explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -15 lines) Patch
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 6 chunks +3 lines, -12 lines 0 comments Download
M Source/core/html/parser/HTMLParserScheduler.h View 1 2 3 3 chunks +16 lines, -3 lines 0 comments Download
M Source/core/html/parser/HTMLParserScheduler.cpp View 1 2 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
kouhei (in TOK)
Would you take a look? This moves scheduling logic as suggested in https://codereview.chromium.org/634983003/
6 years, 2 months ago (2014-10-16 11:05:37 UTC) #2
Sami
Thanks, looks like a good cleanup. I'll let Eric lg this. https://codereview.chromium.org/652813004/diff/20001/Source/core/html/parser/HTMLParserScheduler.cpp File Source/core/html/parser/HTMLParserScheduler.cpp (right): ...
6 years, 2 months ago (2014-10-16 12:46:26 UTC) #4
kouhei (in TOK)
Thanks for your comments! https://codereview.chromium.org/652813004/diff/20001/Source/core/html/parser/HTMLParserScheduler.cpp File Source/core/html/parser/HTMLParserScheduler.cpp (right): https://codereview.chromium.org/652813004/diff/20001/Source/core/html/parser/HTMLParserScheduler.cpp#newcode123 Source/core/html/parser/HTMLParserScheduler.cpp:123: const double parserTimeLimit = 0.500; ...
6 years, 2 months ago (2014-10-16 12:54:19 UTC) #5
kouhei (in TOK)
eseidel: Would you take a look?
6 years, 2 months ago (2014-10-20 00:08:03 UTC) #6
kouhei (in TOK)
haraken: Would you review this one? Parser scheduling project is currently blocked by this CL.
6 years, 2 months ago (2014-10-21 02:08:30 UTC) #7
haraken
This CL LGTM However, I'm not an expert of this area and would love to ...
6 years, 2 months ago (2014-10-21 02:14:05 UTC) #8
kouhei (in TOK)
On 2014/10/21 02:14:05, haraken wrote: > This CL LGTM > > However, I'm not an ...
6 years, 2 months ago (2014-10-21 05:01:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652813004/60001
6 years, 2 months ago (2014-10-21 05:12:09 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 184044
6 years, 2 months ago (2014-10-21 06:41:08 UTC) #12
eseidel
6 years, 2 months ago (2014-10-21 16:20:39 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698