Move all the calculations to client side as much as possible
One of the thing that can help us to scale is to move out some logic to the frontend. For example, code highlighting, inline diffs, counters(number of changed files and lines). Also, we could gzip the diffs before sending them to the browser and cache them somewhere.
Edited by 🤖 GitLab Bot 🤖