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:
afiqzudinhadi 2026-07-02 15:39:52 +08:00
parent 1339ec4525
commit 28e0c1a49f
4 changed files with 59 additions and 103 deletions

View file

@ -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"