-
Notifications
You must be signed in to change notification settings - Fork 814
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
Log path strings directly instead of accumulating #7718
base: master
Are you sure you want to change the base?
Conversation
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.
Seems like a good idea to me, Wdyt @mgallien ?
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.
thanks a lot
please see my comment
src/libsync/syncengine.cpp
Outdated
}); | ||
|
||
qCInfo(lcEngine()) << "paths to discover locally" << allPaths; | ||
if (lcEngine().isInfoEnabled()) { |
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.
can you also add a check for _localDiscoveryPaths
not being empty
Thanks for looking at this. I added the change. |
Signed-off-by: Felix <felix-git@0xf.eu>
Signed-off-by: Felix <felix-git@0xf.eu>
eeab13f
to
5d9f4b8
Compare
Accumulating all discovery paths into one string causes major slowdowns: #7377
This fixes the issue by immediately writing the names out instead of accumulating them. Additionally a check is added to skip the loop entirely if logging is disabled for the given log level.