Diff generation performance slowed by trying to highlight unnecessary parts of the file?
Zendesk: https://gitlab.zendesk.com/agent/tickets/80555 Diff stats: - 22 files in diff - 44 additions and deletions. (2 lines changed per file) - Each file had ~8000 lines total The diff generation take anywhere from 45-60 seconds even though there are relatively few changes. We profiled the request and it appears that a lot of time is spent in highlighting. Are we highlighting the entirety of each file even though only a few lines are displayed? ![Screen_Shot_2017-08-07_at_11.45.22_AM](/uploads/26486467aec7e3c6de21094b31159713/Screen_Shot_2017-08-07_at_11.45.22_AM.png)
issue