Andreas Dangel
-
2013-04-10
- status: open --> accepted
- Milestone: New Tickets --> PMD-5.0.4
When running CPD on a large code base, it takes much longer to run starting with version 5.0.1. Previously, with version 5.0.0 and earlier, it took a few seconds to run (on a project with 200k LOC). Starting with version 5.0.1 and through the latest version, it's taking a couple minutes. I ran VisualVM profiler while CPD was running and it looks like most of the time is spent in JavaTokenizer.inDiscardingState and JavaTokenizer.tokenize methods.