Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a set for the contains check in topo order path for invalidation
I was doing some profiling of noop runs and noticed this linear search showing up fairly high when building targets with a closure of around 7k targets. This creates a set and uses that as a look up table rather than retraversing the list for each target. Testing Done: CI passed at https://travis-ci.org/pantsbuild/pants/builds/126737381 Bugs closed: 3302 Reviewed at https://rbcommons.com/s/twitter/r/3786/ closes #3302
- Loading branch information