mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
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%. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| autoupdate_test.py | ||
| clean_test.py | ||
| gc_test.py | ||
| install_uninstall_test.py | ||
| migrate_config_test.py | ||
| run_test.py | ||
| sample_config_test.py | ||
| try_repo_test.py | ||