Files
magpie/internal
yetone 40c0fe43e5 sessions: tsAt looks for the first timestamp only when that one is asked (#2278)
tsAt(b, true) found the first "timestamp" with bytes.Index over the
whole line, then threw it away for lastIndex's. On a first start's CPU
profile (mote, the 13 GB + 52 GB fixture history, 120 s) that Index
was 2.11 s of tsAt's 5.68 s.

Run on mote at the head:
- go vet ./internal/sessions; go test ./internal/sessions
  ./internal/usage: ok.
- Broken by hand (the last case taking bytes.Index): nothing went red,
  so TestTsAtLastIsTheLines is new: a tool result's own timestamp
  before the line's, with the line's in and past lastIndex's 1 KB
  tail. Red under that break (last = 2020-01-01), green on the fix.
2026-10-31 16:05:49 +08:00
..
…
…
…
…
…
…