[PATCH] D138378: [clang-format][NFC] Skip unneeded calculations

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 03:38:09 PST 2022


owenpan added a comment.

I ran (on macOS Ventura) the release build of clang-format 8627811 <https://reviews.llvm.org/rG86278114085bdce39b9cf1895447070454bb5fe3> on the entire clang codebase and saw only a 0.12% reduction in runtime, which is what I expected.

|           | Run 1   | Run 2   | Run 3   | Average |
| w/o patch | 50.107s | 50.082s | 50.120s | 50.103s |
| w/ patch  | 50.031s | 49.998s | 50.094s | 50.041s |
|




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138378/new/

https://reviews.llvm.org/D138378



More information about the cfe-commits mailing list