by bradmurray on Thu Jul 07, 2011 2:06 pm
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.