Files
orca/src
Neil 4f18d01a97 perf(wsl): a held WSL spawn reads the running list once, reusing only its own read (#36077)
* perf(wsl): a held WSL spawn reads the running list once

The provider-level holds (daemon adapter, daemon-off local provider) accept a running-list read started within a 5 s lease, so they reuse the startup-target hold's probe instead of running wsl --list --running again. A noted stop still forces a fresh read; a read older than the lease probes again.

* perf(wsl): a held spawn's provider hold reuses only that spawn's own running read

Replaces the 5 s lease: the startup-target hold records a read anchor on the spawn's options and reads after it; the provider hold reads after the same anchor, so it reuses that spawn's read and nothing older. No anchor means a fresh read; a noted stop or wake still forces one.

* fix(wsl): cap how old a spawn's own anchored read may be at the provider hold

A daemon respawn or a same-session history lock can sit between the two holds, so the provider hold reads after max(anchor, now - 2 s).
2026-10-29 14:56:29 -07:00
..