[go: up one dir, main page]

Skip to content

Take blob sizes into account when rendering diffs

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

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 by 🤖 GitLab Bot 🤖