CI: Improve formatcode.sh efficiency
Batch files into clang-format to prevent needless processes. Now its twice as fast in real time and uses 4x less resources. The old implementation is also slower (but pretty close to) running a single invocation of clang-format on all files. before time ./formatcode.sh real 0m3.860s user 0m20.975s sys 0m6.694s after time ./formatcode.sh real 0m1.486s user 0m5.426s sys 0m0.203s
Showing
想要评论请 注册 或 登录