-
Notifications
You must be signed in to change notification settings - Fork 487
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
Replace BTreeMap by BTreeSet and remove id form Entry #123
Conversation
That is simpler. The original code used a u64 to avoid cloning the key. While perf isn't a top concern, I am trying to balance "real world" concerns with simplicity. Would you mind using
You can get it from the Redis source. If it is a minimal impact, we can move forward. |
Benchmark output of the original code :====== SET ====== Latency by percentile distribution: Cumulative distribution of latencies: Summary: Latency by percentile distribution: Cumulative distribution of latencies: Summary: Benchmark output of new changes :====== SET ====== Latency by percentile distribution: Cumulative distribution of latencies: Summary: Latency by percentile distribution: Cumulative distribution of latencies: Summary: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough for me, thanks. I'll bias toward simplifying the code.
Related to the issue