Closed Bug 1597750 Opened 5 years ago Closed 10 months ago

Consider to use medium high priority queue for speculative load runnable

Categories

(Core :: DOM: HTML Parser, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1800381

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file)

We should probably try to flush speculative loads asap.

Severity: normal → S3

I'm wondering what would be the best way to evaluate this.
In our CI tests we connect via https proxy which disables speculative connection in some codepaths.
And there's no latency in that environment, so we may not see the impact.
Maybe a local browsertime run with network throttling could at least give us a clue as whether or not this is worth pursuing.

Flags: needinfo?(acreskey)

Oh, I think the work here was already done in bug 1800381 as we now send this with RenderBlocking priority:
https://searchfox.org/mozilla-central/rev/00e348d6935d99a089c318f4512b22327c22154b/parser/html/nsHtml5StreamParser.cpp#1817-1819

Flags: needinfo?(acreskey)

Before I realized that we had already increased the priority of the runnable, I added a temporary PerfStat to see if we could measure an improvement in the delay it takes the Htm5SpeculativeLoad runnable to executre.

And in fact if I rollback the change from Bug 1800381 as the baseline and compare against the current, we see a whole bunch high-confidence improvements in that PerfStat:

https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=9ef513dab6fcdd15b1395438b21157e63f42a335&newProject=try&newRevision=1a3e2b5a765b742ec2bfd41396fabe665cfcdf7e&page=1&framework=13&filter=html5

Smaug: I think we can close this as dupe of bug 1800381 unless you can think of anything else to do here?

Flags: needinfo?(smaug)

Ah, this does look like a dup. There might be still some more tweaks to do, but we can file followups.

Flags: needinfo?(smaug)
Status: NEW → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1800381
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: