Previously, the inspect submission page froze if line numbers were added to extremely long feedback/code. Line numbers are now added only if the feedback or code is shorter than 5000 lines.
A page with ~5000 lines of feedback takes about 3 seconds to load with line numbers.
A page with ~230 000 lines of feedback used to freeze the page. Now it loads fine, but without line numbers.
Description
What?
Previously, the inspect submission page froze if line numbers were added to extremely long feedback/code. Line numbers are now added only if the feedback or code is shorter than 5000 lines.
Fixes #1210
Testing
What type of test did you run?
Tested that the inspect submission page no longer freezes.
Did you test the changes in
Translation
Programming style
Have you updated the README or other relevant documentation?
Is it Done?