mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Significantly reduces the execution time of presubmit checks by optimizing CheckForCommitObjects. For CLs with fewer than 1000 affected files, run `git ls-tree` only on specific files instead of scanning the full tree. This yields a ~70x speedup (~0.97s -> ~0.01s) for typical CLs. Change-Id: Ia8b89dbb14a5129ba79944282deba52a3558bdf2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7234371 Commit-Queue: Josiah Kiehl <kiehl@google.com> Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
115 KiB
115 KiB