Menu

#1082 CPD performance issue on larger projects

PMD-5.0.4
closed
None
CPD
2-Critical
Bug
5.0.1
2013-04-14
2013-04-10
Andrey Utis
No

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.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2013-04-10
    • status: open --> accepted
    • Milestone: New Tickets --> PMD-5.0.4
     
  • Andreas Dangel

    Andreas Dangel - 2013-04-14
    • status: accepted --> in-progress
    • assigned_to: Andreas Dangel
     
  • Andreas Dangel

    Andreas Dangel - 2013-04-14
    • status: in-progress --> closed
     

Log in to post a comment.