commit | 36658274ddfee0822855950cf6547da92a983ba2 | [log] [tgz] |
---|---|---|
author | Saša Živkov <sasa.zivkov@sap.com> | Thu Feb 06 16:24:12 2020 +0100 |
committer | Saša Živkov <sasa.zivkov@sap.com> | Fri Feb 07 16:02:02 2020 +0100 |
tree | 2d7d3cd3b662e8473cd8e88349e78efd7c25ac83 | |
parent | 0f6c2148dfa5601c595aed3841362d63f6da1883 [diff] |
Precompile exclusion patterns for better performance The exclusion patterns are matched against every metric name and we have >100 metrics. Just using String.match is expensive because it first compiles the pattern and then performs matching. Improve performance by precompiling all exclusion patterns. Change-Id: I2b5dc312b9736534f4c3b7d426251f0628d49096