Skip to content

Suppression file name cache.#8684

Open
MartinBP wants to merge 1 commit into
cppcheck-opensource:mainfrom
MartinBP:suppression-filename-cache
Open

Suppression file name cache.#8684
MartinBP wants to merge 1 commit into
cppcheck-opensource:mainfrom
MartinBP:suppression-filename-cache

Conversation

@MartinBP

@MartinBP MartinBP commented Jul 1, 2026

Copy link
Copy Markdown

Implement a file name cache per suppression to avoid calling PathMatch::match again and again for the same suppression and file name combination.

Local benchmark running cppcheck with misra c-2012 has been performed.

Before
10min 34sec
After
1min 36sec

In this test it was a few header files producing the majority of the error messages, which is why the cache speeds it up by a lot.

Implement a file name cache per suppression to avoid calling PathMatch::match
again and again for the same suppression and file name combination.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant