pre-commit/pre_commit/meta_hooks
Anthony Sottile b1389603e0 Speed up filename filtering.
Before there was a `getcwd` syscall for every filename which was filtered.

Instead this is now cached per-run.

- When all files are identified by filename only: ~45% improvement
- When no files are identified by filename only: ~55% improvement

This makes little difference to overall execution, the bigger win is
eliminating the `memoize_by_cwd` hack.  Just removing the memoization would
have *increased* the runtime by 300-500%.
2019-01-23 20:48:41 -08:00
..
__init__.py Implement check-useless-excludes meta hook 2017-10-25 10:09:43 +02:00
check_hooks_apply.py Speed up filename filtering. 2019-01-23 20:48:41 -08:00
check_useless_excludes.py Speed up filename filtering. 2019-01-23 20:48:41 -08:00
identity.py Default local / meta through cfgv 2019-01-05 08:31:03 -08:00