Skip to content

perf(asr): commit live lines on four x64 cores 0.4 s sooner, 1.60 s at worst - #391

Merged
GeiserX merged 2 commits into
mainfrom
perf/live-x64-line
Oct 11, 2026
Merged

GeiserX merged 2 commits into
mainfrom
perf/live-x64-line

Conversation

@GeiserX

@GeiserX GeiserX commented Oct 11, 2026

Copy link
Copy Markdown
Owner

On four x64 cores the live transcript's lines landed up to 2 s after the speech ended, against about 1.05 s on Apple silicon. The line's own decode is only about 0.4 s. The rest was the Worker still busy when the segment closed. A provisional re-decode of the whole open segment, due in the 0.7 s pause that closes it, ran first and held up that line and the other channel's line.

On x64 a provisional re-decode now waits for speech. The line comes within a second with the same words, so nothing is lost. Other machines are unchanged because they were not measured.

Measured with the G6 gate script on a Windows x64 box with four pinned cores: six runs on v1.0.0 and six with the change, alternating, three per diarizer. Every run committed 24 of 24 lines with no clock step.

v1.0.0 This change
Worst line, 144 lines 2.01 s 1.60 s
Median line 1.37 s 1.27 s
90th percentile 1.71 s 1.37 s
Worker behind at a line's decode, median 134 ms 13 ms

A screening run also tried the host marking audio not live from 0.5 s behind instead of 2 s, and it changed nothing. The worst lines left are the decode itself, up to 0.73 s with Nemotron sharing the cores. Int8 or a smaller model would be the next cut. The data is in docs/gates/g6-x64-pause.json.

The stalled run is explained in #379 (comment) as the Windows Time service stepping the clock by 2,572 ms.

live-worker.ts touches only LiveOptions, DEFAULT_LIVE and LivePipeline.window.

Closes #379

…de in the closing pause

On four x64 cores a provisional re-decode of the whole open segment takes
about 0.4 s. One that lands in the 0.7 s pause that closes the segment runs
before the line's own decode, so the line and the other channel's line wait
for it. On x64 the provisional re-decode now waits for speech; elsewhere
nothing changes.

Refs #379
… against 2.01 s

Six runs on v1.0.0 and six with the change on the same four pinned x64
cores, plus the screening runs that chose it.

Refs #379
@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: GeiserX/akou/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 58fbb394-8451-41f2-84e7-3d819d3b64e2

📥 Commits

Reviewing files that changed from the base of the PR and between 481d50e and c532037.


📒 Files selected for processing (4)
  • docs/gates/M0-results.md
  • docs/gates/g6-x64-pause.json
  • src/main/asr/live-worker.ts
  • tests/asr-live.test.ts

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GeiserX
GeiserX merged commit 317980f into main Oct 11, 2026
47 of 49 checks passed
@GeiserX
GeiserX deleted the perf/live-x64-line branch October 11, 2026 12:14
GeiserX added a commit that referenced this pull request Oct 12, 2026
… window behaves (#400)

The version bump for 1.1.0. The release itself is the `v1.1.0` tag on main once this is merged and `ci-ok` is green there.

## What 1.1.0 ships

The CHANGELOG section in this PR is the release note. In short: the server speaks Wyoming for Home Assistant's Assist (#395) and answers Bazarr's whisper endpoints (#396), both off by default; the desktop window stops scrolling past the app and the note and fix boxes grow with their text (#397); the ask box pre-starts the harness (#393); the recognizer loads from the call's start (#394); on four x64 cores a live line commits 0.4 s sooner (#391); the Docker Hub page is filled from the README (#389, #390); the watchdog test and the nightly stop flaking (#392, #399).

## The evidence a stable release needs (CI-28)

- **The 8-hour soak**, at real time with a busy process on every core, through the Rust helper in file mode, on main at b87ba3b (every change in this release but the UI-only #397): 9 of 9 checks ok, no audio hole, heap growth 0.16 MB, event loop late by at most 186 ms. The JSON is `docs/gates/soak-1.1.0.json`.
- **The terms table** has a row dated 2026-10-12. Both vendors' pages were read again today. Anthropic's pages are unchanged word for word. OpenAI's pages refuse plain fetches and the web archive was offline, so they were read in a browser: same dates, same clauses. The Consumer Terms outside the EEA could not be re-read today, and the row says so.
- `bun scripts/stamp-version.ts --check --tag v1.1.0` exits 0; with `v1.1.1` it exits 1, the control.

## Also in this PR

- The server docs' image tags and the README's DMG name say 1.1.0.
- `docs/DESIGN.md` step 6 states the x64 provisional rule that #391 introduced, which the judge of that PR asked for.

Depends on #399 merging first, since the CHANGELOG names it; I will bring main into this branch once it lands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live transcript on four x64 cores: lines take up to 2.3 s, and one run fell 4 s behind with no warning

1 participant