On 17/07/2013 16:22, Ben Fritz wrote:
On Wednesday, July 17, 2013 1:20:15 AM UTC-5, Ingo Karkat wrote:
On 17-Jul-2013 07:58 +0200, Ron Aaron wrote:
I (and my colleagues) often need to view extremely large log files (>
1G). From force of habit we use vim; but vim takes a very long time
to open huge files.
The best I can think of is the LargeFile plugin; please try it out:
http://www.vim.org/scripts/script.php?script_id=1506
I've personally found, even on a quad-core Windows 7 system, with my entire Vim
config disabled, and the settings in LargeFile applied manually, that just
reading or writing files of several hundred Megabytes is unbelievably slow in
Vim.
The "head" and "tail" (and I think there is another) command in Unix-like
systems allows extracting parts of a file, and I'm sure there's a way to put it back together
later. I'm not sure of the equivalent on Windows. I don't actually ever need to edit a file that
big, so I haven't bothered looking for a plugin to do that splicing for me.
Other than that...you'll probably just need to use a different program for this.
Does anyone have hard numbers? I have just loaded an ~900MB PDF file in
~7s (Win7 x64, 8GB, Core2Duo 2.3GHz), my normal VIM config (although I
do have maxmem always set to maximum). First time to load the file took
an age (>40s) due to loading it off disk - once it is in the OS file
cache restarting vim to read the file was quick (I'd expect some delay
with such a large file). Is this the sort of pattern you are seeing?
Mike
--
EXPERIENCE - experience is a wonderful thing. It enables you to
recognise a mistake when you make it again.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.