-
Notifications
You must be signed in to change notification settings - Fork 65
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
Clean up some header includes to slightly improve the build time #1319
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1319 +/- ##
=======================================
Coverage 88.36% 88.37%
=======================================
Files 313 316 +3
Lines 28444 28440 -4
Branches 3138 3138
=======================================
- Hits 25134 25133 -1
+ Misses 2173 2168 -5
- Partials 1137 1139 +2 ☔ View full report in Codecov by Sentry. |
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.
I have two small remarks. If you address them,
we can quickly merge this (there are also small conflicts with the master, but they should be easy to fix).
src/global/ValueIdComparators.h
Outdated
return a.visit([&](const auto& aValue) { | ||
return b.visit([&](const auto& bValue) -> ComparisonResult { | ||
if constexpr (requires() { std::invoke(comparator, aValue, bValue); }) { | ||
return fromBool(std::invoke(comparator, aValue, bValue)); | ||
} else { | ||
AD_FAIL(); | ||
} |
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.
With our updated compiler versions and consistent with a change that I have in the pipeline we can now simply write
return std::visit([&}(const auto& aValue, const auto& bValue) {...}, a, b);
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.
Okay, we can't because those are not std::variant
at all, but I am currently merging the conflict there myself.
src/index/IndexMetaDataImpl.h
Outdated
#include "../util/File.h" | ||
#include "../util/Serializer/ByteBufferSerializer.h" | ||
#include "../util/Serializer/FileSerializer.h" | ||
#include "../util/Serializer/SerializeHashMap.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.
These can and should also all be "util/Serializer/..."
(absolute paths) while you are at it.
# Conflicts: # src/global/ValueIdComparators.h
|
RuntimeParameter
s (which are only used in a few places but are very expensive to parse) into their own header. They used to be part of the globalConstants.h
file, which is included almost everywhere.gtest.h
bygtest_prod.h
in places where only theFRIEND_TEST
macro is needed..cpp
files.