[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:54:58 PST 2022


owenpan added a comment.

To my surprise, tools/clang/unittests/Format/FormatTests with the patch ran a little bit slower:

|           | Run 1  | Run 2  | Run 3  | Average |
| w/o patch | 2707ms | 2697ms | 2710ms | 2705ms  |
| w/ patch  | 2720ms | 2719ms | 2724ms | 2721ms  |


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

https://reviews.llvm.org/D138378



More information about the cfe-commits mailing list