Skip to content

perf: Improve performance when calling PMD in BaseVisitor - #453

Merged
adangel merged 3 commits into
pmd:mainfrom
adangel:chore/performance-improvement-basevisitor
Aug 28, 2026
Merged

perf: Improve performance when calling PMD in BaseVisitor#453
adangel merged 3 commits into
pmd:mainfrom
adangel:chore/performance-improvement-basevisitor

Conversation

@adangel

@adangel adangel commented Aug 28, 2026

Copy link
Copy Markdown
Member

Previously we used a default PMDConfiguration with all the supported languages. PMD executes the analysis for each language in turn. Before that, it initializes the rules. However, we only analyze one file, and we know exactly which language it is. Therefore we can create a PMDConfiguration with only that specific language and only the rules for that language.

Previously we used a default PMDConfiguration with all the supported
languages. PMD executes the analysis for each language in turn.
Before that, it initializes the rules. However, we only analyze
one file, and we know exactly which language it is. Therefore we can
create a PMDConfiguration with only that specific language and
only the rules for that language.
@adangel adangel added this to the 7.27.0 milestone Aug 28, 2026
@adangel
adangel merged commit 5020554 into pmd:main Aug 28, 2026
6 checks passed
@adangel
adangel deleted the chore/performance-improvement-basevisitor branch August 28, 2026 19:20
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