Open Bug 2080290 Opened 1 month ago Updated 3 days ago

Tune the speculation rules in-flight prefetch wait timeout

Categories

(Core :: Networking, task, P3)

task

Tracking

()

ASSIGNED

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.

Whiteboard: [necko-triaged]
Component: Networking → DOM: Performance APIs
Component: DOM: Performance APIs → Networking

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.

Assignee: nobody → helmut
Status: NEW → ASSIGNED
See Also: → 2097452
See Also: → 2097593
See Also: → 2097826
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: