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?

issue