GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] CPD should avoid unnecessary copies when running with --skip-lexical-errors · Issue #3387 · pmd/pmd

[core] CPD should avoid unnecessary copies when running with --skip-lexical-errors #3387

New issue
Copy link
New issue
Copy link
Closed
#3385
Closed
[core] CPD should avoid unnecessary copies when running with --skip-lexical-errors#3387
#3385
Copy link
Labels
an:enhancementAn improvement on existing features / rulesfor:performanceThe goal of this change is to improve PMD's performancein:cpdAffects the copy-paste detector
Milestone
6.37.0

Description

@jsotuyod
jsotuyod
opened on Jul 6, 2021
Issue body actions

The current implementation will perform a complete copy of all parsed tokens so far before parsing a new one. This scales exponentially, and is mostly pointless, as the copy is only used in case of a parsing error; and the state could be manually reversed given the current implementation.

This could heavily improve on the performance of CPD when running with the --skip-lexical-errors option, as well as heavily reduce the memory footprint for such runs.

Activity

  1. jsotuyod
    added
    an:enhancementAn improvement on existing features / rules
    for:performanceThe goal of this change is to improve PMD's performance
    has:pr
    in:cpdAffects the copy-paste detector
    on Jul 6, 2021
  2. jsotuyod
    added this to the 6.37.0 milestone on Jul 6, 2021
  3. jsotuyod
    linked a pull request that will close this issue[core] CPD: Optimize --skip-lexical-errors option #3385on Jul 6, 2021
  4. jsotuyod
    closed this as completedin #3385on Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesfor:performanceThe goal of this change is to improve PMD's performancein:cpdAffects the copy-paste detector

    Type

    No type

    Projects

    No projects

      Milestone

      • 6.37.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.