Cache task plugin predicates

Instead of creating task predicates for every change, create them once
and cache them for the lifespan of the attributeFactory. This can result
in significant performance improvement when this lifespan correlates to
the lifespan of the query (Ibc96a754f9c21b21b131d68636274c8231df30cc).
This is particularly valuable when the predicates do expensive bulk
queries up front.

Change-Id: I1616f53dcd44ff96ecf79dfb06ba6ad056b2c343
1 file changed
tree: 5be70213fa26e334486e8cd856c646b0973b02cd
  1. src/
  2. test/
  3. .gitignore
  4. pom.xml