1. Steve Losh
  2. friendly-find


Steve Losh  committed d6c1bac

Refactor a hot loop.

Results in a ~30% speedup when you have a lot (100+)
of ignore patterns.

  • Participants
  • Parent commits cf6c385
  • Branches default

Comments (0)

Files changed (1)

File ffind

View file
     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