-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Description
Formatting https://github.com/OpenMPT/openmpt/blob/072d4ccc83d842cfa34601dddf2c69a4cc889c74/src/mpt/arch/x86_amd64.hpp (~50kB) using https://github.com/OpenMPT/openmpt/blob/072d4ccc83d842cfa34601dddf2c69a4cc889c74/src/mpt/.clang-format with clang-format 14 takes about 14 minutes for me (CPU is a 3.4GHz AMD Piledriver).
I am using clang-format version 14.0.5
(as shipped with Visual Studio 2022 17.3.0) or Ubuntu clang-format version 14.0.6-++20220622053131+f28c006a5895-1~exp1~20220622173215.157
(from deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main
).
I do not see any excessive memory consumption, it's only CPU time.
The performance was fine with clang-format 13.
I could also provide other source files where performance is noticeably slow with clang-format 14 if required, however the given file is the worst offender.