Skip to content

ibbd-dev/go-cuckoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cuckoo

Golang Cuckoo Filter

Install

go get -u github.com/ibbd-dev/go-cuckoo

Example

测试数据

对于100w的key,分别使用以下两种hash算法:

  • fnv-1: 每个hash table的buckets的数量为2^22
  • fnv-1a: 每个hash table的buckets的数量为2^22 (空间效率比fnv-1稍低)
  • md5: 每个hash table的buckets的数量为2^20

ps: md5的散列性能比fnv好很多

About

Golang Cuckoo Filter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages