On 9/12/2007 11:44:37 AM, Ted Green wrote:
> We do suggest that when you reach the end of a huge
> (20Meg+) file, that instead of going to the beginning, that
> you close the file and re-open it. You can create a hot-key
> to do this; the close re-open time is nearly instantaneous.
That only helps if you have not edited the file.
If the file has been changed, it will be saved, which takes more time than Ctrl-Home.
If the file is not to be edited, it is better to open it as Read Only.
This makes searches and moving around file much faster.
I tested the speed with a 440MB file (about 5.6 million lines).
I have Dell Precision 380 with Pentium 4 (around 3.1 GHz, IIRC).
However, it has 2GB of RAM, so there is lots of room for disk cache.
- Searching a text that is found only on the last line took 19 sec on the first try (although probably the file was partially in the cache already).
- Subsequent searches took 12 to 15 sec.
- Search reverse for text on first line: 50 sec.
- Go from beginning to end (Ctrl-End): 15 to 22 sec.
- Go from end to beginning (Ctrl-Home): 14 to 17 sec.
- Save file after modification: 22 sec.
When search (forward) was performed after save, it took 21 sec.
Then I opened the file in read-only mode (with Fast Browse Mode enabled).
Here are the times:
- Search forward: 4 sec
- Search reverse: 44 sec
- Ctrl-End: 0 sec
- Ctrl-Home: 0 sec
Copying the file using DOS copy command took 12 sec.
> See this page for details:
BTW, On that page it says that multiple replaces can be done with Wildfile Wizard.
I don't think that is correct. However, there is macro huge-sr.vdm which does that.