Skip to content

Comments

refactor(web): simple reuse of search modules 🚂#14921

Merged
jahorton merged 1 commit intoepic/autocorrectfrom
refactor/web/simple-search-space-reuse
Jan 21, 2026
Merged

refactor(web): simple reuse of search modules 🚂#14921
jahorton merged 1 commit intoepic/autocorrectfrom
refactor/web/simple-search-space-reuse

Conversation

@jahorton
Copy link
Contributor

@jahorton jahorton commented Oct 9, 2025

This changes SearchQuotientSpur, our predecessor to module-based search-graph management, to construct new instances whenever the path is extended, treating SearchQuotientSpur as an immutable portion of the search graph that may be referenced by path extensions - new instances of SearchQuotientSpur. No inputs may be added into pre-existing instances (the previous pattern) - instead, adding an input creates a new instance that references and utilizes the old one without editing what it represents.

This, in turn, removes the need to clone SearchQuotientSpur instances when new input is received for an incoming token.

Relates-to: #14445

Note that the class itself is transition in this PR. This PR is focused entirely on facilitating the transition to search-space immutability. Further work (starting in #14979 and #14987) will increase the abstraction and further alter the design into a new design pattern that will facilitate correction across word-boundary shifts, such as when fat-fingering a whitespace key.

Build-bot: skip build:web
Test-bot: skip

@github-project-automation github-project-automation bot moved this to Todo in Keyman Oct 9, 2025
@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Oct 9, 2025
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 9, 2025

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S13 milestone Oct 9, 2025
@darcywong00 darcywong00 modified the milestones: A19S13, A19S14 Oct 11, 2025
@jahorton jahorton changed the base branch from master to epic/autocorrect October 16, 2025 18:46
@keymanapp-test-bot keymanapp-test-bot bot changed the title refactor(web): simple search space reuse refactor(web): simple search space reuse 🚂 Oct 16, 2025
@jahorton jahorton changed the base branch from epic/autocorrect to refactor/web/correction-heuristic-and-thresholding October 16, 2025 18:47
@jahorton jahorton changed the base branch from refactor/web/correction-heuristic-and-thresholding to refactor/web/relocate-search-space October 16, 2025 19:57
@jahorton jahorton force-pushed the refactor/web/relocate-search-space branch from db32a59 to be473a1 Compare October 17, 2025 15:03
@jahorton jahorton force-pushed the refactor/web/simple-search-space-reuse branch from 1eaf922 to ddf9a58 Compare October 17, 2025 15:03
@jahorton jahorton changed the title refactor(web): simple search space reuse 🚂 refactor(web): simple reuse of search modules 🚂 Jan 5, 2026
This changes SearchQuotientSpur to construct new instances whenever the path is extended, treating SearchQuotientSpur as an immutable portion of the search graph that may be extended by new input, creating new instances of SearchQuotientSpur.

This, in turn, removes the need to clone SearchQuotientSpur instances when new input is received for an incoming token; the original instance's represention will remain unchanged and may also be reused by a new instance extending the graph for the newly-received input.

Relates-to: #14445

Build-bot: skip build:web
Test-bot: skip
@jahorton jahorton force-pushed the refactor/web/simple-search-space-reuse branch from 6ecc09a to 4b20187 Compare January 9, 2026 16:24
@jahorton jahorton marked this pull request as ready for review January 14, 2026 21:26
@keyman-server keyman-server modified the milestones: A19S20, A19S21 Jan 16, 2026
Base automatically changed from refactor/web/relocate-search-space to epic/autocorrect January 21, 2026 21:57
@jahorton jahorton merged commit 221ac83 into epic/autocorrect Jan 21, 2026
7 of 8 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Jan 21, 2026
@jahorton jahorton deleted the refactor/web/simple-search-space-reuse branch January 21, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants