Add Optimization Flag - #541
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #541 +/- ##
=======================================
Coverage 47.86% 47.86%
=======================================
Files 95 95
Lines 7673 7673
Branches 669 669
=======================================
Hits 3673 3673
Misses 3808 3808
Partials 192 192 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This looks OK to me. Are you OK with adding the flag @ajgdls? |
|
The response from the architecture team is to benchmark this PR in the profiling suite before committing the PR. So the proposed change is good; we would like justification by analysis and numbers. |
|
Initial data suggests performance improvements are between 6.7% and 18.2%, with Sum plugin showing a 46% decrease in processing time. @Ohisemega |
|
The current build is now with |
|
Based on my comments in PR #544, it might be worth using this method to add the optimisation flag instead: |
Ohisemega
left a comment
There was a problem hiding this comment.
See last comment about changing from using interface to:
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2")
|
@Ohisemega Upon further research and thought, it makes more sense to use the compilation flag inside the Dockerfile. This also leads to the compilation flag being propagated down. |
Hi @MahirAbbas, the changes you made will affect the build container, which is good, but we also need those changes in the |
@Ohisemega Is the |
It's a fair point you have raised. I'll approve it then! |
Creates a common_flags library which has compile options. The current flag is now -O2 and -g.
Fixes #542