-
Notifications
You must be signed in to change notification settings - Fork 6.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
Less clock_gettime calls #27325
Less clock_gettime calls #27325
Conversation
@@ -3,6 +3,7 @@ | |||
#include <Poco/Timespan.h> | |||
#include <common/types.h> | |||
#include <DataStreams/SizeLimits.h> | |||
#include <Common/Stopwatch.h> |
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.
BTW if only reference/pointer is used, forward declaration is enough.
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.
It's quite a light header, but sure: #27569
Performance tests don't show any difference because of ClickHouse/docker/test/performance-comparison/config/users.d/perf-comparison-tweaks-users.xml Line 16 in e192711
|
Yandex synchronization - maybe i should overload the function instead of changing its interface? |
Don't worry about "Yandex synchronization" at all. |
BTW: it looks like part of the original issue is build-related, on official builds difference is smaller, while still clearly visible:
I've updated also the numbers in the original message. |
Why do you even try to use unofficial builds? |
It was my local dev build of master using clang-11. I was debugging a different thing. But the issue exists, just locally i had it more obvious. |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Improve the performance of fast queries when
max_execution_time=0
by reducing the number ofclock_gettime
system calls.Detailed description / Documentation draft: