text editor for large file
Discussion
Half a gig. Notepad dies at 250MB or so. Wordstar 6.0 for DOS which was always my choice for loading large files back in the day will let me load and edit it but after three hours is still running the NTVDM process to 99% of the CPU trying to save it and I'm bored 
The linux server it lives on is "rather old", has a fixed swap partition which is not enough when combined with the RAM, nor does it have enough disk space available to have two copies on the disk at once.

The linux server it lives on is "rather old", has a fixed swap partition which is not enough when combined with the RAM, nor does it have enough disk space available to have two copies on the disk at once.
Well given the size of the file I can't be much help. I just wrote an editor, and I know it copes well up to 100M or so, but I figured it unlikely that people would need more, so I've not tested it beyond. TBH I think you're unlikely to find something that will operate on the file "on disk", unless you go really basic, maybe edlin?
The thing is that to get most of the features most people expect, wordwrap, syntax hilights and so on, you have to index the data. If you're going to index, you may as well keep it in memory and let the OS deal with the swapfile. Equally most editors will need space to index the data, and this will be a variable proportion of the size of the file, fixed for a given editor.
I know from experience that you get better performance out of notepad if you leave wordwrap switched off. There is a good reason for this, which I won't bore you with, but it might help.
Failing that, maybe write something that will read the file, and "chunk it". Wouldn't take long.
The thing is that to get most of the features most people expect, wordwrap, syntax hilights and so on, you have to index the data. If you're going to index, you may as well keep it in memory and let the OS deal with the swapfile. Equally most editors will need space to index the data, and this will be a variable proportion of the size of the file, fixed for a given editor.
I know from experience that you get better performance out of notepad if you leave wordwrap switched off. There is a good reason for this, which I won't bore you with, but it might help.
Failing that, maybe write something that will read the file, and "chunk it". Wouldn't take long.
Edited by dilbert on Monday 6th August 14:19
Ultra-edit32 is probably the best editor I've found, handles just about anything. I'd recommmend it for most tasks, apart from it can get pretty complex, and you have to pay for it after a month, IIRC. Worth a trial, though.
We've got a proprietary editor at work that'll handle very large text (and proprietary) files, but it's mainly for analysis than editing.
We've got a proprietary editor at work that'll handle very large text (and proprietary) files, but it's mainly for analysis than editing.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff




