pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

Parallelize clang-tidy hook

Open hx507 opened this issue 3 years ago • 0 comments

Currently clang-tidy hook is running in serial, which can be slow if multiple large files are modified. Clang-tidy is trivially parallelize-able per file, so why don't we take advantage of that? Locally it speeds up a ~8 sec clang-tidy run to ~3 sec, which is bottle-necked on largest file changed -- still much faster.

hx507 avatar Jun 20 '22 18:06 hx507