Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-139

FullTextMatchingLicense.prune uses inefficient deleteAtChar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10
    • None
    • None

    Description

      FullTextMatchingLicense.prune is quite inefficient.

      It first copies the entire string to a StringBuilder, then scans the buffer deleting characters that are not letters or digits.

      It should be a lot quicker to just copy the letters and digits once, skipping the rest.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: