pre-commit/pre_commit/commands
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 Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate.py Implement default_language_version 2019-01-05 13:15:23 -08:00
clean.py clean: separate store from runner 2018-06-29 20:08:23 -07:00
gc.py Implement default_language_version 2019-01-05 13:15:23 -08:00
install_uninstall.py Be more timid about choosing a shebang 2019-01-10 14:26:55 -08:00
migrate_config.py Remove stateful Runner 2018-12-26 22:33:21 -08:00
run.py Speed up filename filtering. 2019-01-23 20:48:41 -08:00
sample_config.py Upgrade the sample config 2018-11-15 14:17:10 -08:00
try_repo.py Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00