Take blob sizes into account when rendering diffs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Work on this issue
  • Close this issue

When rendering a diff we check if the diff size exceeds a certain threshold. This check however does not take into account what the size is of the entire blob that changed. This means that it's possible to load a large blob into memory (so we can highlight and display it) whenever the diff itself is small. This check should be performed without loading the blob into memory.

Edited Sep 22, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading