-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
expression: optimize localSliceBuffer to be lock-free #26078
Conversation
Please add a benchmark result of this optimize. |
Signed-off-by: WangZhengru <[email protected]>
Signed-off-by: WangZhengru <[email protected]>
Signed-off-by: WangZhengru <[email protected]>
BenchmarkColumnBufferAllocateParallel BenchmarkColumnBufferAllocateParallel-16 3872 348108 ns/op 3 B/op 0 allocs/op
BenchmarkColumnBufferAllocateParallel-16 195615 6916 ns/op 0 B/op 0 allocs/op BenchmarkColumnBufferAllocate BenchmarkColumnBufferAllocate-16 26558 40542 ns/op 0 B/op 0 allocs/op
BenchmarkColumnBufferAllocate-16 24264 49455 ns/op 0 B/op 0 allocs/op |
/cc @guo-shaoge |
Signed-off-by: WangZhengru <[email protected]>
/run-check_dev_2 |
/cc @lzmhhh123 |
Result of |
updated |
Signed-off-by: WangZhengru <[email protected]>
Signed-off-by: WangZhengru <[email protected]>
Most usage of column pool is like |
/run-integration-common-test |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: WangZhengru <[email protected]>
Signed-off-by: WangZhengru <[email protected]>
Signed-off-by: WangZhengru <[email protected]>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0a4a8c5
|
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e8f4da4
|
|
/run-unit-test |
@mmyj @lzmhhh123 All tests passed |
What problem does this PR solve?
Problem Summary:
lock makes localSliceBuffer slow
What is changed and how it works?
What's Changed:
localSliceBuffer implementation
How it Works:
use lock-free sync.Pool
Related changes
Check List
Tests
Side effects
Summary of benchmark (ns/op):
Release note