Sublime Forum

Replace Operation terribly slow compared to other editors

#1

I have had a lot of problems with large replace functions and know there has to be a better way. For example I have a replace that is replacing all spaces in a 100K line text file with nothing. It is taking over 10 minutes and eating up 100s of MB of memory. The file is only 1.7MB. The same operation takes about 5 seconds in BBEdit. There are about 600,000 replacements done in the process.

0 Likes

#2

Ping - anybody with any thoughts on this?

0 Likes

#3

In general, the Replace panels performance is fine. It appears you’ve found a pathological corner case.

0 Likes

#4

It performs fine when it’s not doing that much work. On any medium to large job it is always orders of magnitude slower than BBEdit.

0 Likes