[core] RulesetFactoryCompatibility stores the whole ruleset file in memory as a string #1451
Labels
for:performance
The goal of this change is to improve PMD's performance
in:ruleset-xml
About the ruleset schema/parser
Milestone
See here:
pmd/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java
Lines 108 to 116 in 0c1afc4
applyAllFilters
performs a bunch of regex replacements on the entire String, which creates many copies of it. We could do better by only filtering theref
attributes when parsing a rule reference node, this just seems very inefficient.@jsotuyod This may offset your performance comparison of DOM and SAX for #724
The text was updated successfully, but these errors were encountered: