-
Notifications
You must be signed in to change notification settings - Fork 90
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
CMake: Add separate configure-time option for MsgStack #2309
Conversation
fmt is very slow if used with debugging. Disabling the msgstack can give a signficicant speedup.
clang-tidy review says "All clean, LGTM! 👍" |
Might make sense to make it just on/off, with a default value of Please could you also add it to The other option would be to just bump up the |
I don't mind, will change 👍
Sure 👍
Even at level 4 I wouldn't want them, as they add no value if I already have compiled with |
I cannot find anything in the docs on this, is it possible to evaluate a statement without if? I want to assign the result of the comparison
|
Yeah, I think that's the cleanest way. Everything is stringly-typed in CMake, so boolean expressions basically only work inside |
It is simpler, and only slightly reduces the usecases.
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, pick one of the suggestions depending on how you want to use this :)
Co-authored-by: Peter Hill <zed.three@gmail.com>
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.
clang-tidy made some suggestions
Formatting took over 50% of the run time, so I added an option to disable it while keeping the full checks enabled.
This is really useful if you want to debug on a small mesh, as you get the stack trace anyway with e.g. gdb.