secure-software-engineering / phasar

A LLVM-based static analysis framework.
Other
919 stars 140 forks source link

Improve Logger Performance #683

Closed fabianbs96 closed 7 months ago

fabianbs96 commented 7 months ago

The IF_LOG_ENABLED macro only checks for the logger being enabled, not for the enabled log level. This leads to drastical performance drops in the IDESolver when enabling logging -- even if just INFO log is enabled.

This PR fixes this issue by providing a new macro IF_LOG_LEVEL_ENABLED that additionally checks for the enabled log level. Additionally, the logger is slightly refactored