-
Notifications
You must be signed in to change notification settings - Fork 526
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
fix(streaming): use xxhash64 for hash key in cache #9163
Conversation
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Running q17 bench to see performance, give me a while |
Thanks for your being so responsive! 😍 |
+1 😍 |
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Slight improvement from q17 micro bench (may be just noise 😆 )
Will try out q17 nexmark bench later, benchmark instance still compiling the code 😅 |
Not too sure if frequent key conflicts OR it's just many duplicate keys. I'm guessing it may be the latter, and if so there's not much we can do about it by changing the hash type. Need to verify kube-bench workload to know for sure. Let me open an issue to track this. |
Codecov Report
@@ Coverage Diff @@
## main #9163 +/- ##
==========================================
- Coverage 70.86% 70.85% -0.02%
==========================================
Files 1200 1200
Lines 199974 199986 +12
==========================================
- Hits 141711 141696 -15
- Misses 58263 58290 +27
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Let me run it for longer and see how it goes |
Okay LGTM it is done processing. |
I will run a longer bench tmr with 1B records |
Hash Joins should also improve this massive I suppose |
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.
impressive improvement
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao i@bugenzhao.comI hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Resolve the long-standing issue of #5579. Also, add a generic for
HashCode
to avoid misusing between different hashers.We may perform some benchmarks to see whether...
This PR does not introduce breaking changes, as this only affects the hash code for hash maps and the hasher of hash-shuffle or consistent hash is still
Crc32
.Close #5579.
Checklist For Contributors
./risedev check
(or alias,./risedev c
)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note