aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/systems/dispatch_auto.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: add dispatch benchmark subproject魏曹先生21 hours1-1/+0
|
* feat: add dispatch strategy features with auto-selection and benchmark魏曹先生21 hours1-0/+110
support Add `dispatch_linear`, `dispatch_tree`, and `dispatch_phf` as mutually exclusive features for selecting the command dispatch strategy. When no strategy feature is enabled, an auto-selection heuristic picks the optimal strategy based on command table characteristics (size, name length, nesting depth). Add the `bench_support` feature to compile all three generators for the benchmark harness, and introduce `bench_cell!` to generate benchmark cells comparing strategies. The PHF generator uses a CHD minimal perfect hash for O(1) lookup independent of table size, while the trie generator was refactored to use a shared fallback method, keeping code size linear in table size.