Friday, May 17, 2013

Re: Opening large files

On Friday, May 17, 2013 6:38:04 PM UTC+12, Rajesh Kannan wrote:
>
> Could the programatically contributing members please try to make Vim faster when opening large files? Even when I open a file of say 2 megs it takes 3-4 seconds more than say Ultraedit. Larger text files, say about a 100 megs, take minutes to open.

2 megs is not a large file these days; it should not take 3 or 4 seconds to load. On my 7 year old desktop it takes 700 ms to load a 4 MB text file, with start up logging on, though I'd just created it so would be coming out of disc cache.

I suggest diagnosing the problem by starting vim with the --startuptime command line option. F.ex.,

gvim --startuptime time.txt file.txt

and look at time.txt to find out where the delay is.

I do use and like the large file plugin. By default it defines "large" as "20MB". Setting this to 200, so that the large file plugin is not used, a 100 MB text file I've just created took 4.3 s to load. With the large file plugin active, it takes a second longer, because a message appears for a second. From this I expect the plugin won't help you.

I recall reports on this list of slowness starting vim on windows systems where the swap file is put on a network share. See :help 'directory'.

Regards, and HTH, John Little

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: