Tune the speculation rules in-flight prefetch wait timeout
Categories
(Core :: Networking, task, P3)
Tracking
()
People
(Reporter: acreskey, Assigned: helmut)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 external file)
Bug 2071485 makes a navigation wait for a matching in-flight speculation rules prefetch, bounded by dom.speculation_rules.wait_timeout_ms, currently 2000 ms. That value was a starting point.
From the review of D327503:
- Chromium uses about 1 s for immediate and eager rules and no limit for moderate and conservative, since those were triggered by a strong intent signal.
- A server that answers prefetches slowly, or not at all, turns the timeout into a flat delay on every navigation to that URL. This matters more once cross-origin prefetch is supported.
- We have no field data on how often the timeout fires versus the prefetch completing first.
Decide on the default, and whether it should vary by eagerness, based on measurements of how often navigations wait and how long. Related: the speculation rules data-cost metrics in bug 2072656.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•4 days ago
|
||
Adds speculation_rules.prefetch_wait_duration, a labeled timing
distribution recorded once per PrefetchMatchWaiter when it resolves.
The matched/timed_out/no_potential_match labels show how often the
dom.speculation_rules.wait_timeout_ms bound actually fires versus the
prefetch completing first, and how long the wait was, so the default
can be tuned from field data.
Updated•4 days ago
|
Description
•