1
0
Fork
You've already forked brakey
0

Generalize cache system to better handle reuse #3

Open
opened 2026年02月14日 00:46:47 +01:00 by UserCurt · 0 comments

Some layouts share the same set of layered bindings so have common unigram metrics. However, the caching system will often regenerate these metrics despite them already being pre-calculated when using a different layout.

As a separate point, if needing n-gram metrics while m-gram metrics are already calculated, the system will not re-use the existing cache.

This feature request proposes two changes:

  • Splitting n-gram cache into 1..n separate caches
  • Ensuring 1-gram hash is only dependent on the layered binding set and not the position of the bindings.

This will reduce the need to re-generate caches and also remove the need for --cache in optimize.py.

Some layouts share the same set of layered bindings so have common unigram metrics. However, the caching system will often regenerate these metrics despite them already being pre-calculated when using a different layout. As a separate point, if needing n-gram metrics while m-gram metrics are already calculated, the system will not re-use the existing cache. This feature request proposes two changes: - Splitting n-gram cache into 1..n separate caches - Ensuring 1-gram hash is only dependent on the layered binding set and not the position of the bindings. This will reduce the need to re-generate caches and also remove the need for `--cache` in `optimize.py`.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
UserCurt/brakey#3
Reference in a new issue
UserCurt/brakey
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?