Skip to content

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

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

5 participants