EmEditor (text editor) Forum Index
   Regular Expressions
     Replace in files slow
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
localizer
Posted on: 4/29/2009 12:44 pm
Just popping in
Joined: 4/29/2009
From:
Posts: 2
Replace in files slow
I have a number of .txt files of 20 Mb each. Most of these Mbs are due to the fact that text in each line and in each file is followed by a huge number of white spaces.
I can open each file and do a Search for this
\$+?$
Replace with nothing.
This operation shrinks every file down to 2 Mb. But I have to do this manually for every file.

When I try this Search and Replace in all files, it is very slow. Doing it manually (open file, search and replace, save, close, open next one) is much faster. How can I improve speed in Replace in files?
Computer hardware is not an issue here - 3.5 Gb RAM, Core 2 Duo.
Thanks!
Yutaka
Posted on: 4/29/2009 2:58 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Replace in files slow
Quote:

localizer wrote:
I have a number of .txt files of 20 Mb each. Most of these Mbs are due to the fact that text in each line and in each file is followed by a huge number of white spaces.
I can open each file and do a Search for this
\$+?$
Replace with nothing.
This operation shrinks every file down to 2 Mb. But I have to do this manually for every file.

When I try this Search and Replace in all files, it is very slow. Doing it manually (open file, search and replace, save, close, open next one) is much faster. How can I improve speed in Replace in files?
Computer hardware is not an issue here - 3.5 Gb RAM, Core 2 Duo.
Thanks!


I am not sure why Replace in Files is slower. But if doing it manually is faster, can you try Keep Modified Files Open checked in the Replace in Files dialog?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文