commit | ac33304f5f7262d80db8ada27528d98078f091dc | [log] [tgz] |
---|---|---|
author | Saša Živkov <sasa.zivkov@sap.com> | Thu Feb 06 15:49:19 2020 +0100 |
committer | Saša Živkov <zivkov@gmail.com> | Fri Feb 14 12:21:31 2020 +0000 |
tree | 8ca3a1e7c213dec7afad982cf909dffc4d0ec995 | |
parent | a822e3aba5ee3382de6df5f6ea0bacfeb6a1eac4 [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: I1326697345faa3b9812a45ee24fb669f4a8d7c76