# HG changeset patch # User Steve Losh # Date 1348720734 14400 # Node ID d6c1bac54f7d9e4219a46932b726cb3a76f20d80 # Parent cf6c3851d091fcefa07977f59c5a91f9918b4403 Refactor a hot loop. Results in a ~30% speedup when you have a lot (100+) of ignore patterns. diff -r cf6c3851d091 -r d6c1bac54f7d ffind --- a/ffind Thu Sep 27 00:00:33 2012 -0400 +++ b/ffind Thu Sep 27 00:38:54 2012 -0400 @@ -286,8 +286,9 @@ if options.ignore_vcs_dirs and basename in VCS_DIRS: return True - if any(map(lambda i: i(path), ignorers)): - return True + for i in ignorers: + if i(path): + return True return False