[go: up one dir, main page]

Skip to content

Increase file size for threshold when viewing large text files

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

Summary

Context: !177708 (comment 2293010598)

Right now when viewing text files that are larger than 1 MB we do not render the file, instead, we display the following message:

Screenshot_2025-01-13_at_09.19.25.png

I think we can safely increase this threshold.

Proposal

  • Do some performance profiling to see how large a file must be before the browser is negatively impacted.
  • Since we have two syntax highlighters (Highlight.js and Rouge) we need to figure out if the thresholds between them need to be treated independently (very likely because they are handled very differently in the DOM).
Edited by 🤖 GitLab Bot 🤖