Skip to content

CxxUtils: Small improvements for CachedValue::isValid().

Scott Snyder requested to merge ssnyder/athena:isValid.CxxUtils-20201105 into master

CachedValue::isValid() should be optimized for the case where the value is already valid. In that case, we were doing two comparisons, which likely resulted in forward branches. Adjust so that we need only make one comparison in this case, and use ATH_LIKELY to make it less likely that we need to branch in this case.

Merge request reports