1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-09 20:50:38 +08:00

finish int32 int64

This commit is contained in:
源文雨
2022-10-09 16:23:12 +08:00
parent 2dd269b364
commit b410f26bf4
12 changed files with 782 additions and 48 deletions

View File

@@ -72,6 +72,7 @@
> 备选方案
- 使用哈希桶作索引,允许溢出桶,同样每个桶大小为`4096`字节,可装`340`个值。共`256`个桶,初始占用`1M`空间,后续由于溢出可能会增加。
- 哈希算法: hash = (n*(n+11454191981))%256
```
0 8 12 20
┌───────────────────┬─────────┬───────────────────┬─────────┐
@@ -114,6 +115,7 @@
> 备选方案
- 使用哈希桶作索引,允许溢出桶,同样每个桶大小为`4096`字节,可装`255`个值。共`1024`个桶,初始占用`4M`空间,后续由于溢出可能会增加。
- 哈希算法: hash = (n*(n+18446744073709551557))%1024
```
0 8
┌───────────────────┬───────────────────┐