Rendering line numbers for code blocks gets very slow past a few hundred lines #19202
Labels
A-Performance
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Z-Platform-Specific
Steps to reproduce
#synapse:matrix.org
, or send a 500-700 line code block. The code block doesn't have to have anything apart from line breaks in it.addLineNumbers
appears to take quadratic time; the spacing of the blue bits gets larger and larger as time progresses.What happened?
What did you expect?
Element Web to be responsive
What happened?
Element Web froze for ~10 seconds
Operating system
Windows
Browser information
Chrome 93.0.4577.82
URL for webapp
develop.element.io
Homeserver
matrix.org
Have you submitted a rageshake?
No
The text was updated successfully, but these errors were encountered: