Never trim dictionary — hard error if over budget
Removed all trimming/auto-trim logic. Build fails if compiled dict exceeds flash budget. CHD now uses spare slots (1.23x load factor) and fewer buckets (entry_count/5) for reliable construction at any entry count. Binary format bumped to v3: header stores slot_count and entry_count separately.
This commit is contained in:
parent
1339ec4525
commit
28e0c1a49f
4 changed files with 59 additions and 103 deletions
2
Kconfig
2
Kconfig
|
|
@ -78,7 +78,7 @@ config STENO_DICT_MAX_SIZE
|
|||
default 473088
|
||||
help
|
||||
Max compiled dict size. 473088 = 462KB.
|
||||
The MPHF compiler auto-trims to fit.
|
||||
Build fails if dict exceeds this — no trimming.
|
||||
|
||||
menuconfig STENO_SPLIT_DICT
|
||||
bool "Split dictionary across both halves"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue