Repository navigation
英語の初回候補を高速化 / Reduce cold English candidate latency - #1279
Closed
KazumaProject wants to merge 1 commit into
Closed
KazumaProject wants to merge 1 commit into
KazumaProject wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
日本語
Pixel 6 でプロセス起動後の最初の入力に
andを使うと、英語辞書の準備完了後も、単語補完が1,809件の読みを走査していました。計測した回では補完に146 msかかり、辞書の木の走査が約86 msを占めました。速く打つと、直前のanの補完処理も次の入力まで残りました。anの候補に現れたandをandの表示時刻に数える誤判定を防ぎます。Pixel 6、Android 17、Full Standard Debug。プロセス停止後の最初の単語を画面上の QWERTY で85 ms間隔で打ち、最後のキーから候補欄の描画直前までを各条件3回測りました。
andandand(40 ms間隔)theは167 msから124 ms、openは125 msから101 ms、canは134 msから156 msでした。and、can、hello、testingの入力と候補表示を確認しました。devと修正後で同じ失敗を再現しました。期待値39件に対して150件です。English
On a Pixel 6, the first
andquery visited 1,809 dictionary readings after the English dictionary was ready. In one diagnostic run, word completion took 146 ms, with about 86 ms spent walking the trie. During rapid typing, the precedinganquery could still be running when the next key arrived.andoffered forancan otherwise be counted as the result forand.Pixel 6, Android 17, Full Standard Debug. Each cell is the median of three process starts, with the first word typed on the on-screen QWERTY keyboard at 85 ms intervals. Timing is from the final key release to the candidate strip's pre-draw.
andandand(40 ms interval)theat 167 → 124 ms,openat 125 → 101 ms, andcanat 134 → 156 ms.and,can,hello, andtesting.devand this branch, with 150 entries against an expectation of 39.