Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize for exact-match target name lookups
Performing wildcard target name resolution is fairly costly, having to search through all group names, target names, and target aliases, calling File.fnmatch on each one in order to find matches. In the case of the targets being non-wildcard strings much faster exact matching can be performed resulting in a significant performance improvement. !feature * **Optimize get_targets performance for exact-match cases** Attempt exact target name matches for strings passed to get_targets and only attempt the slower wildcard match if the string contains a valid glob wildcard character.
- Loading branch information