Skip to content

Enhancements to HyperLogLogs API #2100

Open

Description

@antirez

This issue actually is about two different enhancements. One is substantial, one extremely small. Maybe more will be added in the context of this issue later.

  1. Add PFISMEMBER for cardinality estimation.
  2. Add Lua call that performs the same hash function performed by the HLL internals (it's an murmurhash2 modified to be arch neutral).

While PFISMEMBER can only be useful for a limited amount of elements, since our HLL size is fixed, it is always possible to shard elements among multiple keys client-side. This feature was requested many times, and was also mentioned in the London development meetings meetup. It looks like people really want it to get out more out of the HLL feature.

Activity

  1. badboy commented on Oct 28, 2014

    @badboy
    Contributor

    I implemented point 2 of the above suggestions. It's only quick'n'dirty yet. We should export the MurmurHash function properly (I simply added the declaration to scripting.c for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions