Skip to content

Native-path seek landing time grows ~4x between 6.6.0 and 6.7.0 (median 0.26-0.36 s -> 1.2 s); software path unaffected #305

Closed

Description

@rrgomes

Summary. Seek-to-landed time on the native (loopback-HLS) path grew from a ~0.3 s median to ~1.2 s across the 6.6.0 → 6.7.0 window — same box, same titles, same scrub pattern. Software-path seeks are unchanged. A same-day, same-box pin-back A/B reproduces it: engine 6.6.0 lands a median 0.36 s, 6.7.0 a median 1.22 s.

Numbers (host seek instrumentation, seek-issued → engine-landed, direct-URL sources on a LAN PMS, 3rd-gen Apple TV 4K):

title / path era n median max
4K HEVC DV-P7 (native) 6.5.6/6.6.0 multi-day baseline 24 0.26 s 1.97 s
same 6.7.0 34 1.22 s 8.30 s
same, same-box same-day A/B pinned 6.6.0 30 0.36 s 5.42 s
4K HEVC no-DV (native) baseline 36 0.14 s 0.44 s
same 6.7.0 36 0.40 s 0.90 s
SD MPEG-2 (software) both eras — ~0.11 s unchanged
1080p AV1 (software) both eras — ~0.08 s unchanged

Producer restarts stay fast throughout (8–34 ms in the logs); the added time sits between the restart and the landing.

Scope notes. The multi-second outliers appear on BOTH pins in the same-day A/B and are fatter than the multi-day baseline's, so we are not attributing the tail to this window — it looks scrub-pattern-dependent (bursts of coalesced presses) and may be its own story. The claim here is the median shift, which the pin-back isolates cleanly.

Suspect. The only change we can see on this path in the window is the range-boundary rework (the detour-fill fix — which works; the stutter it fixed is gone and we just closed that issue). A seek is a reposition, and a native-path landing involves several sequential reads (producer restart, segment rebuild, player re-buffer), so a small per-reposition cost would be paid several times per seek while staying under the software path's noise floor. That's inference, not measurement — happy to run an instrumented build or capture whatever timing you'd want around startPersistentConnection on a seek.

Activity

  1. rrgomes commented on Aug 7, 2026

    @rrgomes
    ContributorAuthor

    Closing this as a filing error on our side: the regression does not survive a finer analysis of the same logs. The pin-back A/B controlled the engine but not the seek mix, and the median shift decomposes entirely into sampling composition.

    Native-path seek landings fall into three cost classes, each visible per-seek in the engine log:

    • A — AVPlayer buffer hit (target inside AVPlayer's own buffered range, no segment request): ~0.0-0.2 s.
    • B — producer cache hit (a GET /segN served from already-cut segments): ~0.15 s while paused, ~0.35-0.45 s while playing (a playing landing waits for timeControlStatus=playing; a paused one doesn't).
    • C — producer restart (declareTarget backward jump N → M, proactively restarting producer): ~2.4 s median on an ~86 Mbps 4K source.

    Within class, the filed window shows nothing: class B playing lands 0.34-0.35 s on pinned 6.6.0 (n=51) vs 0.36-0.40 s on 6.7.0 (n=57); class C 2.41 s (n=4) vs 2.37 s (n=12). The filed samples mixed the classes differently — the "6.7.0, median 1.22 s" sample was 13/34 restart-class (deliberate back-and-forth scrubbing), the "pinned 6.6.0, median 0.36 s" sample 4/41 — and the low baselines that framed the comparison came from buffer-hit and paused-scrub sessions (class A, and class B paused at 0.15 s n=14, which the current release matches at 0.18 s). A headless macOS A/B through seektest against a paced local origin agrees: medians 0.135 s (6.6.0) vs 0.138 s (6.7.0).

    One real number did fall out, in case it's useful: the class-C cost is origin-rate-bound by construction — the landing waits on a full segment cut (seg732: served 40374821 B (wait=778.7ms cache=22 restarted=true)), and AVPlayer typically wants the following segment too before it resumes, so on high-bitrate sources a restart-class seek cannot land much under ~2 segment-fetches at link rate. That cost is identical in every release we measured, so it's no regression — but if serving the in-progress segment progressively, or cutting a short first segment after a restart, is something you'd entertain, we'd be glad to write it up separately with the field anatomy. Apologies for the mis-aimed filing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions