Issue 71786
Summary [clang-tidy] `misc-const-correctness` is compared to other checks very slow (16/17)
Labels clang-tidy
Assignees
Reporter Viatorus
    E.g. on a file with 1000 lines of unit tests, the following execution time has been measured:

```
===-------------------------------------------------------------------------===
 clang-tidy checks profiling
===-------------------------------------------------------------------------===
 Total Execution Time: 49.6135 seconds (49.6176 wall clock)

   ---User Time---   --System Time--   --User+System--   ---Wall Time---  --- Name ---
  25.6283 ( 58.7%)   0.1126 (  1.9%)  25.7409 ( 51.9%)  25.7429 ( 51.9%)  misc-const-correctness
   0.6483 (  1.5%)   0.2052 (  3.4%) 0.8535 (  1.7%)   0.8526 (  1.7%)  bugprone-use-after-move
   0.6351 ( 1.5%)   0.2162 (  3.6%)   0.8512 (  1.7%)   0.8514 (  1.7%) bugprone-stringview-nullptr
   0.6075 (  1.4%)   0.2073 (  3.5%)   0.8148 (  1.6%)   0.8149 (  1.6%)  modernize-type-traits
   0.6096 (  1.4%) 0.1944 (  3.3%)   0.8040 (  1.6%)   0.8033 (  1.6%) bugprone-standalone-empty
   0.5329 (  1.2%)   0.1910 (  3.2%)   0.7239 ( 1.5%)   0.7236 (  1.5%)  misc-unused-using-decls
   0.4504 (  1.0%) 0.1156 (  1.9%)   0.5660 (  1.1%)   0.5661 (  1.1%) bugprone-infinite-loop
   0.4220 (  1.0%)   0.1425 (  2.4%)   0.5645 ( 1.1%)   0.5641 (  1.1%)  cppcoreguidelines-owning-memory
   0.4418 ( 1.0%)   0.0943 (  1.6%)   0.5361 (  1.1%)   0.5362 (  1.1%) modernize-macro-to-enum
   0.3688 (  0.8%)   0.1195 (  2.0%)   0.4883 ( 1.0%)   0.4891 (  1.0%)  readability-non-const-parameter
   0.3745 ( 0.9%)   0.1123 (  1.9%)   0.4868 (  1.0%)   0.4868 (  1.0%) readability-container-size-empty
   0.3656 (  0.8%)   0.1147 (  1.9%) 0.4803 (  1.0%)   0.4807 (  1.0%)  readability-uppercase-literal-suffix
 0.3534 (  0.8%)   0.1127 (  1.9%)   0.4660 (  0.9%)   0.4662 (  0.9%) bugprone-unused-return-value
   0.3396 (  0.8%)   0.1242 (  2.1%)   0.4639 (  0.9%)   0.4640 (  0.9%)  modernize-use-transparent-functors
   0.3372 ( 0.8%)   0.1086 (  1.8%)   0.4458 (  0.9%)   0.4461 (  0.9%) bugprone-suspicious-string-compare
   0.3153 (  0.7%)   0.1140 (  1.9%) 0.4292 (  0.9%)   0.4295 (  0.9%)  cppcoreguidelines-avoid-c-arrays
 0.3024 (  0.7%)   0.0982 (  1.6%)   0.4006 (  0.8%)   0.4007 (  0.8%) readability-redundant-control-flow
   0.2930 (  0.7%)   0.1062 (  1.8%) 0.3992 (  0.8%)   0.3990 (  0.8%)  modernize-deprecated-ios-base-aliases
 // ...
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to