Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-14030

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 9.0.0
    • 7.21.0, 8.9.19, 8.19.9
    • UI

      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.

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

                Created:
                Updated:
                Resolved: