<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mingling.git/docs/dev/pages/issues/_t2_automated-dispatch-tree-optimization.md, branch main</title>
<subtitle>用于开发多子命令的命令行框架
</subtitle>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/'/>
<entry>
<title>feat(dispatch): add auto dispatch strategy selection</title>
<updated>2026-08-19T19:49:21+00:00</updated>
<author>
<name>魏曹先生</name>
<email>1992414357@qq.com</email>
</author>
<published>2026-08-19T19:49:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/commit/?id=65642c1dad1138f4c72536b86123ffeefd33ba60'/>
<id>65642c1dad1138f4c72536b86123ffeefd33ba60</id>
<content type='text'>
Introduce automatic dispatch strategy selection with three
mutually-exclusive features: `dispatch_linear`, `dispatch_tree`,
and `dispatch_phf`. When none are enabled, the generator picks
the optimal strategy at compile time based on command table shape.

Add CHD minimal perfect hash generator, refactor trie fallback
into a shared method to keep generated code linear, and add a
benchmark harness to validate strategy selection.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce automatic dispatch strategy selection with three
mutually-exclusive features: `dispatch_linear`, `dispatch_tree`,
and `dispatch_phf`. When none are enabled, the generator picks
the optimal strategy at compile time based on command table shape.

Add CHD minimal perfect hash generator, refactor trie fallback
into a shared method to keep generated code linear, and add a
benchmark harness to validate strategy selection.
</pre>
</div>
</content>
</entry>
</feed>
