Improve performance of calculating evolution trend metric value
#19172
c: PerformanceNeeds Review4.11.0
@sgiehl
opened this Pull Request on May 4th 2022
Member
Description:
This will avoid calling Metrics::isLowerValueBetter each time the trend value for a row is calculated, which can be easily hundreds or thousands of calls depending on the datatable size.
[ ] Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
[ ] Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)