jkeyes/pathfinder — pull request #2 by rubik (2013-08-11 06:34:07+00:00)
Title: Use all and any inside AndFilter and OrFilter to short-circuit

Since `all` and `any` return as soon as a deciding value is encountered (`False` for `all` and `True` for `any`) in some cases this speeds up the process of determining whether a path is acceptable. I find this especially useful with the most expensive filters, such as the image-related ones.

Example:
```
FnmatchFilter('*.jpg') & ColorImageFilter()
```

In this case it will check for colors only JPGs, while returning `False` straight-away for all the non-JPGs files.