Bug 538123 - reduce delta cache misses when working tree hasn't changed

Because a new working tree is created for each builder and project,
basically every needsBuild check triggers a cache miss and expensive
recalculation of the delta tree. In incremental builds caused by
classpath updates, PDE builders often don't change the working tree
at all. The frequent cache misses therefore seem unnecessary.

This commit improves the hit rate in that scenario by checking if the
cached delta is still valid, because there were no changes between the
current and cached trees.

Change-Id: I6c20274df794f60f29fd8bd866e62df798df8a58
Signed-off-by: Julian Honnen <julian.honnen@vector.com>
4 files changed
tree: ed93318ec6fe6a2e9794d30be20fda17a221e159
  1. bundles/
  2. tests/
  3. .gitignore
  4. CONTRIBUTING.md
  5. pom.xml