Menu

10x slowdown on cppcheck 2.5

2021-07-05
2021-07-05
  • Dusan Peterc

    Dusan Peterc - 2021-07-05

    Is anybody else experiencing huge slowdown in the latest version?

    I understand gradual slowdown due to larger feature set, but not a ten-fold slowdown.

    My project is mid-size, 180.000 lines of C code.
    My command line is:
    cppcheck --max-configs=1 --enable=all --std=c99 .c .h

    The slowdown is extreme on larger modules (>20.000 lines)

    cppcheck 1.83
    real 1m7.098s
    user 1m7.048s
    sys 0m0.048s

    cppcheck 2.3
    real 1m36.737s
    user 1m36.415s
    sys 0m0.072s

    cppheck 2.5
    real 16m1.705s
    user 16m1.356s
    sys 0m0.093s

    My system in Linux, i7 CPU has 6 cores / 12 threads, 16 GB of RAM on SSD disk.
    For size and copyright reasons, can't share the code... or make a small example.

     
  • CHR

    CHR - 2021-07-05

    I'm seeing similar problems. I have created this ticket with example code.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.