-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[opt](MultiCast) Avoid copying while holding a lock #37462
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39491 ms
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40198 ms
|
run performance |
TPC-H: Total hot run time: 39591 ms
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40561 ms
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39372 ms
|
TPC-DS: Total hot run time: 173064 ms
|
ClickBench: Total hot run time: 30.37 s
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40251 ms
|
TPC-DS: Total hot run time: 172148 ms
|
ClickBench: Total hot run time: 30.55 s
|
run p0 |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
ClickBench: Total hot run time: 31.46 s
|
run buildall |
TPC-H: Total hot run time: 40394 ms
|
TPC-DS: Total hot run time: 173064 ms
|
ClickBench: Total hot run time: 31.14 s
|
|
||
void MultiCastDataStreamer::_wait_copy_block(vectorized::Block* block, int& un_finish_copy) { | ||
std::unique_lock l(_mutex); | ||
_cv.wait(l, [&]() { return un_finish_copy == 0; }); |
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.
danger will notify different queue last
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
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.
LGTM
Previously, copying was done while holding a lock; Now, get block while holding the lock and then copy
Previously, copying was done while holding a lock; Now, get block while holding the lock and then copy
pick #37462 The difference is quite large, so it can't be directly picked.
pick apache#37462 The difference is quite large, so it can't be directly picked.
Previously, copying was done while holding a lock; Now, get block while holding the lock and then copy
Proposed changes
Previously, copying was done while holding a lock;
Now, get block while holding the lock and then copy