Skip to content

Commit

Permalink
Make 'changed' faster by not instantiating already injected targets
Browse files Browse the repository at this point in the history
  • Loading branch information
qma authored and jsirois committed Oct 13, 2015
1 parent b148ee4 commit 17b415f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/build_graph/source_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _find_targets_for_source(self, source, build_files):
address_map = self._address_mapper._address_map_from_spec_path(build_file.spec_path)
for address, addressable in address_map.values():
self._build_graph.inject_address_closure(address)
target = self._build_graph._target_addressable_to_target(address, addressable)
target = self._build_graph.get_target(address)
sources = target.payload.get_field('sources')
if sources and not isinstance(sources, DeferredSourcesField) and sources.matches(source):
yield address
Expand Down

0 comments on commit 17b415f

Please sign in to comment.