hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 34ad857110 Android diagnostics: no thread the speed test pins outlives its run; debug core ratings say so
What:
- SpeechModel.measure makes a fresh pool for every speed-test run on the
  test's own thread and frees it afterwards (Whisper.threadPool(handle, 0,
  0) before and after). Before, its finally put dictation's pool back from
  the test's thread: that pool's worker inherited the "Hex speed test"
  name and stayed pinned to the fast cores (the thread the gate emulator
  found on cpu 2-3 after the app speed test), and later rows could reuse a
  pool made elsewhere, whose workers the core sampler can't see.
- Dictation makes its pool again on the transcription thread when it next
  starts (ensurePool in prepare and before a standard decode; a no-op when
  the pool is there). dictationCores falls back to the cores a new pool
  would use when the model has none.
- The Processor line ends "(debug core ratings: ...)" under the debug
  override, so an emulator report can't pass for a phone's.

Checked, unchanged: the measuring thread itself (and the keyboard test's,
the same worker), a decode stopped with ✕ and a dictation's decode all get
their affinity back in hexspeech.cpp's decode, after the pool is paused;
freeing or replacing a pool (unload, release, another size or mask) joins
its workers, and ggml applies no affinity to the freeing thread; a paused
pool's creation applies none to its creator.

Removed: measure() no longer restores dictation's pool itself.

Verified on basebook: ./gradlew testDebugUnitTest assembleDebug green (237
tests; StripTextTest covers the Processor line with and without debug
ratings). The thread-affinity behaviour needs the emulator check.
2026-11-24 16:03:50 -05:00
..
src Android diagnostics: no thread the speed test pins outlives its run; debug core ratings say so 2026-11-24 16:03:50 -05:00
build.gradle.kts Android: faster English dictation (Labs) (#2704) 2026-11-24 13:36:38 -05:00
proguard-rules.pro Android: faster English dictation (Labs) (#2704) 2026-11-24 13:36:38 -05:00