自定义hash表实现,并发安全(not yet
)。
[ ] 利用go:generate来生成指定Map<KeyTyp,ValueTyp>并生成方法集
[ ] 利用自己实现的murmur3来替换murmur3算法
[x] 参照redis.dict实现链式hash表 http://zhangtielei.com/posts/blog-redis-dict.html
[x] 能自动扩容,rehash
[x] 完成性能测试,对比golang内置Map
[ ] 并发安全
- 使用链地址法来解决键冲突
- 自动扩容
- 渐进式rehash