Performance is impacted heavily by spaces in Codemirror Syntax highlight for YAML files

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 9.0.0
    • Affects Version/s: 7.21.0, 8.9.19, 8.19.9
    • Component/s: UI
    • 2
    • Severity 3 - Minor
    • 1

      Summary

      When viewing a YAML file that includes lots of trailing spaces, Codemirror treat each space as a separate token, and by processing them all performance is impacted heavily, in some cases waiting more than 1 minute, during this time the browser freezes.

      Steps to Reproduce

      1. Commit and push sample file (only 3.79 KB) to any repository
      2. Go to source and view sample file

      Expected Results

      BBS should render in seconds

      Actual Results

      Browser freezes and takes around 1minute to render the page

      Workaround

      Remove all trailing spaces from yaml file.

        1. sample-file.yml
          4 kB
          Carlos Sanchez Rosa

              Assignee:
              Carlos Sanchez Rosa
              Reporter:
              Carlos Sanchez Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: