hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel c143f9e72c Android keyboard: work out the autocorrection chip after a 100 ms pause, not inside the keystroke
What changed: the strip's correction chip (#2249) asked the decoder for what space would do on every
letter, inside the key's own handling. Measured on the API 31 emulator (temporary timing around
KeyboardEngine.letter, 108 letters of a typed sentence with typos): that search took 1.97 ms median,
16.1 ms p95 and 21 ms at worst, 77% of each keystroke (letter() 3.1 ms median, 19.0 ms p95).
Now the letter commits and the suggestions show at once, and the chip is worked out 100 ms later
unless another letter came first (then it waits again). Space still decides its correction itself,
exactly as before, so what gets typed doesn't change.

After (same run): letter() 1.36 ms median, 4.3 ms p95; the deferred chip 1.5 ms median, 5.3 ms p95,
between keys. The typed sentence came out identical before and after ("The quick brown fox jumps
over the lady dog ... because people like to write long sentnces"). Emulator only; a phone's CPU is
slower, so the gap there is larger. Replaced: the inline chip computation.
2026-11-21 15:58:29 -05:00
..
src Android keyboard: work out the autocorrection chip after a 100 ms pause, not inside the keystroke 2026-11-21 15:58:29 -05:00
build.gradle.kts Bump Hex Android to 0.1.1 (build 2) for internal testing (#2082) 2026-11-20 18:09:21 +00:00
proguard-rules.pro Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00