Skip to content

symboldatabase.cpp: avoid library type lookup in parsedecl() if token is a keyword#7821

Merged
chrchr-github merged 1 commit intodanmar:mainfrom
firewave:fromlibtype
Sep 15, 2025
Merged

symboldatabase.cpp: avoid library type lookup in parsedecl() if token is a keyword#7821
chrchr-github merged 1 commit intodanmar:mainfrom
firewave:fromlibtype

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Sep 13, 2025

Analyzing the code from https://trac.cppcheck.net/ticket/12861 with DISABLE_VALUEFLOW=1
560,704,773-> 539,797,196

Reduction of actual lookups in the affected call
65,542 -> 1

Callgrind in CI
56,425,029,456 -> 56,330,732,330

@chrchr-github chrchr-github merged commit 060db6b into danmar:main Sep 15, 2025
61 checks passed
@firewave firewave deleted the fromlibtype branch September 15, 2025 06:39
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.

2 participants