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

feat: make Set support HintKeyAndRAMIdxMode #397

Merged
merged 5 commits into from
Aug 2, 2023
Merged

feat: make Set support HintKeyAndRAMIdxMode #397

merged 5 commits into from
Aug 2, 2023

Conversation

bigboss2063
Copy link
Member

I refactor the Set data structure to store Record rather than []byte, so it support HintKeyAndRAMIdxMode now.

I use fnv to calculate the hash of value and use that hash as the key of set.This may have some performance overhead, but fortunately fnv is very fast.

Copy link
Member

@elliotchenzichang elliotchenzichang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this great contribution! Code master!

@elliotchenzichang elliotchenzichang merged commit 0f44fe9 into nutsdb:master Aug 2, 2023
4 checks passed
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

2 participants