Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5528

Performance issue when highlighting big files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5
    • Component/s: Scanner
    • Labels:
      None

      Description

      It seems that the time taken to highlight a given file is quadratic with the number of chunks to highlight in that file.
      Highlighting 1700 chunks takes 7ms.
      Highlighting 17000 chunks takes 700ms.
      Highlighting 90000 chunks takes 24000ms.

      When removing the overlap check (https://github.com/SonarSource/sonarqube/blob/master/sonar-batch/src/main/java/org/sonar/batch/highlighting/SyntaxHighlightingDataBuilder.java#L61), highlighting 90000 chunks takes 175ms.

        Attachments

          Activity

            People

            Assignee:
            pynicolas OLD - Pierre-Yves Nicolas
            Reporter:
            pynicolas OLD - Pierre-Yves Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: