Sublime Forum

Slow search and replace for multiple files

#1

Hi,

I use Sublime 3.1.1 Build 3176 and I love it!

But, if i want to search and replace strings in my projects, thats very slow.

Its 4110 files and often takes several minutes to replace 10 strings…

Thats probably normal?!?

How could I make this faster?

Can i exclude by default some folders?

best regards
beat

0 Likes

#2

I suggest a combination of find and sed for smaller operations on many files.

0 Likes

#3

Stumbled into the same situation. I wonder that Sublime is able to open and replace needed strings in all of my 3.5k files in <2 minutes and ate only few megs of RAM for that. But then I pressed “Save All”… that process took ~4 minutes. Why so long? It’s not an opening of tabs. Then, “Close All”. And this took ~4 minutes too. Why? What if I need to perform these operations thousands of times? Sublime need an option to replace without opening a files in tabs. Something like “apply immediately” in the search results window. If I will use find & sed in console then I will prefer vi.

0 Likes

#4

Try using a vanilla installation of Sublime Text. If I try to do a find replace with my full installation, i.e., hundreds of packages, Sublime Text takes for ever. I usually I never wait and kill it. Then, I just open a vanilla installation and it does it super fast.

0 Likes