You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(xds): precompute GAMMA route domains and extension-strip results at write time #540
Two per-snapshot recomputations of write-time-stable data:
agent/internal/xds/cache/capture.go:650-664 — routeTargetDomains() rebuilds domain lists via fmt.Sprintf("%s:%d", ...) in nested loops (base names × ports) on every snapshot.
agent/internal/xds/cache/gamma.go:65-109 — serviceRoutesSnapshot() runs stripUnavailableExtensions() per snapshot, scanning + copying every rule even when there is nothing to strip.
Fix: compute both at mutation time (SetServiceRoutes / SetRouteTargetPorts / authz-availability change) and cache the results; the snapshot path reads only. No behavior change — same domains, same strip semantics.
Activity