1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-05 00:32:44 +08:00
This commit is contained in:
源文雨
2022-05-03 21:33:00 +08:00
parent d17f36b255
commit fae3641fab
4 changed files with 8 additions and 5 deletions

View File

@@ -94,4 +94,4 @@
## string
> 查找速度为O(logn)
先将其哈希为int64再按int64进行查找。冲突时根据string表项附带存储的[下一个哈希相同的数据项的指针(uint64)](/api/types.md#字符串)进行遍历
先将其哈希为int64再按int64进行查找。具体哈希方法为取字符串`md5`的前8位作为小段`uint64`冲突时根据string表项附带存储的[下一个哈希相同的数据项的指针(uint64)](/api/types.md#字符串)可依次遍历到所有项目,然后找到真正与查询内容相同的项