Explore adding limit for File Blame page as files with large history will crash the browser
In our efforts to performance test the File Blame feature we've recently discovered that files with a large showable history will actually cause severe instability to the browser, sometimes even crashing it.
Some examples of files that cause this:
- https://gitlab.com/gitlab-org/gitlab/-/blame/master/fixtures/emojis/index.json
- https://gitlab.com/ddevault/linux/-/blame/master/MAINTAINERS
- https://gitlab.com/gitlab-com/www-gitlab-com/-/blame/master/data/team.yml
Notably this is a pain point for most Git products, with no other products being able to handle the same.
Much like we do for rendering large files where we don't show them if they're over 1mb in size we should look to add a similar limit or pagination for File Blame to prevent this bad experience from happening to users as well as reduce strain on our servers.
Edited by Grant Young