[clang-tools-extra] [clang-tidy] Start the largest files first in run-clang-tidy (PR #243430)
Amir Khordadi via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 18 05:49:19 PST 2026
khordadi wrote:
Thanks for testing this on so many projects! The re2 case has a specific cause: `util/test.cc` is compiled into 20 test binaries, so the database has 20 entries for it, and clang-tidy checks it once per entry. curl has the same pattern. I've pushed a change that weights each file's size by its number of compile commands. Replaying measured per-file times from 17 projects at 16 jobs, that's 12.0% faster than today's order, with no project slower, against 7.1% for size alone. Ordering by the previous run's times, as lit does, would add about 2 points more, but it needs an option and a file to keep the times in, so I'd leave it for a follow-up if you think it's worth it.
https://github.com/llvm/llvm-project/pull/243430
More information about the cfe-commits
mailing list