Relatively minor diffs in large xml file uses excessive memory and time to display
This could be similar to gitlab-ce#22339 but filing separately as we have profile output from this case. It was reported by a customer in https://gitlab.zendesk.com/agent/tickets/94532. There 11 files, about 1-2Mb each, with a smallish number of diffs. When first reported, they were getting 502 errors trying to display the diffs. After raising unicorn memory limits from 400/650 to 650/900 and extending the unicorn timeout from 60s to 300s they were able to display the diffs successfully.
The files are xml. The file names do not have a .xml extension; they are .profile. Not sure if that has any bearing.
See profile output, attached.
Customer
Edited by 🤖 GitLab Bot 🤖