You are not logged in.

#1 2008-03-18 19:34:26

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Best editor for massive text files?

Whats the best open source editor for viewing/editing a 500 MB ascii text file on a system with 256 MB of RAM and no swap?

I need to be able to rapidly move around the file without waiting for the whole thing to load.

And it would be good if the application was also available for windows.

Offline

#2 2008-03-18 19:36:14

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Best editor for massive text files?

Vim comes to mind... It's light and fast if you want, it's available on Windows as well, but remember that 500 MB are quite a lot...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#3 2008-03-18 19:54:13

Majorix
Member
Registered: 2008-01-31
Posts: 96

Re: Best editor for massive text files?

Some GUI'less editor, like vim or nano.

Offline

#4 2008-03-18 20:06:16

F
Member
Registered: 2006-10-09
Posts: 322

Re: Best editor for massive text files?

surprisingly vim will probably be slow here. I would actually try to use vi here instead if possible. If that is too slow perhaps nano. But sacrificing vi's magic for nano's blandness will come at a price if you are doing lots of edits.

Offline

#5 2008-03-19 02:47:03

elgatofelix
Member
From: Chile
Registered: 2007-07-03
Posts: 137

Re: Best editor for massive text files?

-joe's own editor
-i would recomend code-browser (GUI but light) it can handle lots of files without penalty


Are u listening?

Offline

#6 2008-03-19 10:58:52

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Best editor for massive text files?

nano and vim would be dead slow..I've got 2GB memory and I don't know why editing 150MB text files causes epic lags.


I need real, proper pen and paper for this.

Offline

#7 2008-03-19 11:03:57

nDray
Member
From: Portugal
Registered: 2007-01-21
Posts: 143
Website

Re: Best editor for massive text files?

perhaps the file could be split in 10mb parts, or so, then merged again.....?

Offline

#8 2008-03-19 11:13:52

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Best editor for massive text files?

How does Emacs behave with huge files? I have used it for a while, and it seems quite light, but I've never edited big files.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#9 2008-03-19 11:21:41

nDray
Member
From: Portugal
Registered: 2007-01-21
Posts: 143
Website

Re: Best editor for massive text files?

Also, what type of editing will take place? Can it be done with sed, or similar tools?

Offline

#10 2008-03-19 15:22:27

tizoc
Member
Registered: 2006-07-28
Posts: 57

Re: Best editor for massive text files?

In my experience, emacs behaves better than vim when editing large files, but it isn't very good at it anyway. I don't know of any editor for unix that has support for really large files (ultraedit for windows does http://www.ultraedit.com/support/tutori … ling.html).

Offline

#11 2008-03-19 15:28:36

valnour
Member
From: Cleveland, TN, USA
Registered: 2008-02-17
Posts: 84
Website

Re: Best editor for massive text files?

I'm not sure about emacs in this case, but as an emacs user, I feel that I should chime in. After searching the emacswiki I found this little gem that might help.

http://www.emacswiki.org/cgi-bin/wiki/vlf.el

Read the comments at the top of that file, it's self explanatory. But it was written by someone that wanted to use emacs for opening Very Large Files (VLF).
Good Luck! Oh, and emacs will run on win32 also.

Offline

#12 2008-03-19 15:43:23

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Best editor for massive text files?

i've not used it, but there seems to be a similar solution for vim. http://vim.sourceforge.net/scripts/scri … pt_id=1506


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#13 2008-03-19 23:00:59

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Best editor for massive text files?

Many thanks for the suggestions. 

code-browser was just the job and thanks to an AUR contribution from Purch is available here.

Loading a 2.5 million line, 300 MB text file takes a few seconds and searching for a string, a few more - its pretty impressive.  And cross platform with a GUI.  (That's using a system with 2 GB RAM.)   

Originally I was looking for something that operated like Wordstar (in the day!) where only the part of the file being viewed was loaded.  But for now I'll stick with code-browser.

Last edited by Cotton (2008-03-19 23:06:22)

Offline

#14 2008-03-20 00:45:44

alex_anthony
Member
From: UK
Registered: 2007-09-25
Posts: 344

Re: Best editor for massive text files?

I once tried loading a 2 GB mpd log in gedit. Wasn't actually that bad...

Offline

Board footer

Powered by FluxBB