mcedit is slow at handling files with long lines (25KB+) #4421
Labels
area: mcedit
mcedit, the built-in text editor
prio: medium
Has the potential to affect progress
ver: 4.8.28
Reproducible in version 4.8.28
Milestone
Important
This issue was migrated from Trac:
slyfox
(@trofi)Initially noticed mcedit slowness when I attempted to insert with Shift+Insert a single 35KB-long line from clipboard. It took about 40 seconds to insert that tiny amount of data.
The same slowness is visible if I open mcedit in a file with long line and start adding individual symbols to the end of it (say, press down an 'a' key and rely on repeat): CPU usage grows to 100%. perf top says most of the time is spent traversing some buffers:
It looks like appending each next char requires traversal of the line. Looks like it causes quadratic behaviour when we insert large chunks of text via clipbuffer.
The text was updated successfully, but these errors were encountered: