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
1 file changed
tree: 8ca3a1e7c213dec7afad982cf909dffc4d0ec995
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl