Large diffs take too long to load
- Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/13281
- Dev link: None
- GitLab version: 8.2
Expected behavior
If an abnormally large number of changes are present in a merge request, the page should still load in a reasonable amount of time and display a message telling the user about the large diff.
Observed behavior
A large merge request may take over a minute to load the page, and then the user sees the large diff with a message about the diff being too large. The page should load faster than > 1 min just to display this message. This was customer reported, but I recently encountered the same issue the first time I visited this merge request - https://dev.gitlab.org/gitlab/GitHost/merge_requests/14
Next steps
Can we improve the way merge requests load when change sets are large?
cc/ @dzaporozhets @DouweM