Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing murmur2 method implementation of the HyperLogLog algorithm to Lua #5370

Open
wants to merge 3 commits into
base: 4.0
Choose a base branch
from

Conversation

nparipovic
Copy link

This patch is adding the MurmurHash2 functionality to Redis.

The patch consists of the code change which includes the murmur2 method implementation of the HyperLogLog algorithm to Lua and trailing zeros check. Tests were done on the Mac OS X 10.13.6, and Linux 4.9.93-linuxkit-aufs x86_64, and are provided as well. Extensive usage of the patch is happening on the Linux 3.10.0-862.3.3.el7.x86_64 system.

After the tests, we have concluded that:

  • Hash results are the same on Linux and Mac OS
  • Values are deterministic and are always replicable (important for the cluster mode)

@yoav-steinberg
Copy link
Contributor

@oranagra @itamarhaber What's our policy regarding adding extensions to lua? I'm curious as to why this was required? Perhaps another approach would be to develop a redis module and then call its commands from the script?

@CLAassistant
Copy link

CLAassistant commented Mar 24, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants