N
Neo
Hi Friends,
My product has a feature of logging. Currently it is simple MACRO
based where during release build compiler removes logging function
calls. Now I am planning to make logging available during release
build as well. As a result user will simply pass some command line
parameter during process start and things will start logging.
Now as this code will be present in my binary during release time,
this will enforce some types of checks even if the logging is not
enabled which will lead to some CPU cost.
Is there any way to optimize these checks?
Are there any way where I can bypass these checks during normal
functional behavior.
Assembly, C, C++ compiler/code specific suggestions are welcome.
- Vikram S
My product has a feature of logging. Currently it is simple MACRO
based where during release build compiler removes logging function
calls. Now I am planning to make logging available during release
build as well. As a result user will simply pass some command line
parameter during process start and things will start logging.
Now as this code will be present in my binary during release time,
this will enforce some types of checks even if the logging is not
enabled which will lead to some CPU cost.
Is there any way to optimize these checks?
Are there any way where I can bypass these checks during normal
functional behavior.
Assembly, C, C++ compiler/code specific suggestions are welcome.
- Vikram S