vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] memory usage


From: Thomas Dickey
Subject: Re: [vile] memory usage
Date: Sun, 1 Aug 2010 16:40:40 -0400 (EDT)

On Sun, 1 Aug 2010, address@hidden wrote:

I have plain text file of around 100meg (3.7 million lines) if I edit this
file with vile I noticed vile's resident set size is about 311megs (virtual
448megs), which xvile I've seen it goes as high as 650megs and really start
chewing into my swap area.

I've tested with a few other editors (mainly vi variants) and they seem to
require roughly half the memory as vile on these same large files.  I'm not
complaining, I'm just curious as to why this might be the case and if there
are any settings I should apply when working with these files to reduce the
memory footprint.  I've already disabled highlighting.

The basic difference is that vile stores each line as a chunk,
while emacs and vim store the file as a couple of chunks.

I don't recall what elvis and nvi do (elvis used to use a third
scheme, which is more like the traditional vi, that is managing
text in pages which were written to disk).

If you google around for "buffer gap", you'll find some discussion.


(There's a long story there, but short of rewriting the program,
I don't see how to change it).

Thanks,
Wayne


I know these are large files and I don't usually need to edit them but
sometimes its much easier to navigate large log files with an editor
instead of 'more'.

_______________________________________________
vile mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/vile


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]