HLL

Redis compatible HyperLogLog implementation in Elixir.

This library uses algorithms from following papers:

The HLL.Redis module is Redis (v5) compatible. It uses the same hash algorithm, same HyperLogLog estimation algorithm and same binary format as Redis (v5) does. Therefore, it could consume HyperLogLog sketches from Redis and it could generate HyperLogLog sketches for Redis as well.

Features

Installation

The package can be installed by adding hll to your list of dependencies in mix.exs:

def deps do
  [
    {:hll, "~> 0.1"}
  ]
end

Documentation can be found at https://hexdocs.pm/hll.

HLL vs HLL.Redis

This library provides two different HyperLogLog modules, HLL and HLL.Redis.

Similarity

Difference

Therefore, if you do not require "Redis compatible", it's recommanded to use HLL module for performance gain.

License

MIT