| ▲ | mudkipdev 5 hours ago | ||||||||||||||||||||||
I would recommend using the ropey crate for easy performance gains. A string buffer is quick to implement but you will hit a wall as soon as you need to edit large files. | |||||||||||||||||||||||
| ▲ | mizmar 4 hours ago | parent [-] | ||||||||||||||||||||||
It's not that bad. You need really large files to notice. The largest realistic file I'll ever touch - sqlite3 amalgamation with 270k lines and 9.1 kB - still takes only 6 ms to memmove it on my poor laptop. Any regular up-to 10k lines file is memmoved in order of microseconds. | |||||||||||||||||||||||
| |||||||||||||||||||||||