mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
add todo
This commit is contained in:
parent
4d1913b769
commit
c7a3aea169
@ -98,3 +98,7 @@ httprouter 和众多衍生 router 使用的数据结构被称为 radix tree,
|
||||

|
||||
|
||||
每个结点上不只存储一个字母了,这也是压缩字典树中“压缩”的主要含义。使用压缩字典树可以减少树的层数,同时因为每个结点上数据存储也比通常的字典树要多,所以程序的局部性较好,从而对 CPU 缓存友好。
|
||||
|
||||
我们来跟踪一下 httprouter 中,一个典型的字典树的创建过程,路由设定如下:
|
||||
|
||||
TODO
|
Loading…
x
Reference in New Issue
Block a user