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
1 file changed
tree: 2d7d3cd3b662e8473cd8e88349e78efd7c25ac83
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. pom.xml