vimdiff performance bug?

313 views
Skip to first unread message

Peng Yu

unread,
Feb 21, 2015, 11:29:04 AM2/21/15
to vim_use
Hi,

I use vimdiff to open two large .gz file files. It is a long time to
open both files. And I can not wait so that I have to kill vim.

But zdiff is OK to compare the two files. Is there anything can be
done with vimdiff to improve its performance?

--
Regards,
Peng

Erik Falor

unread,
Feb 21, 2015, 2:16:45 PM2/21/15
to vim...@googlegroups.com
It would help if you could be a bit more specific about your
situation and provide some useful information that would help us to
reproduce your problem.

In particular, it would be supremely helpful if you were able to
provide your .gz files.

If supplying the files is not possible, some extra useful information
you may provide includes:

Does it take Vim a long time to open one of these files
individually, or is it just slow when opening them in diff
mode?

Just how big are these files (uncompressed)?

Do your compressed files contain XML data with very long lines?
Vim's syntax highlighting of such files is known to be slow in
this case.

Could you post the results of launching vimdiff on these files in
profile mode? Something like the following:

$ vimdiff --statuptime profile.txt file1.gz file2.gz

The profiling results are written to profile.txt. Just let
that run while you go get a coffee if it takes too long to
wait.

Cheers
--
Erik Falor
Registered Linux User #445632 http://linuxcounter.net

kamaraju kusumanchi

unread,
Feb 28, 2015, 5:06:14 PM2/28/15
to vim...@googlegroups.com
On Sat, Feb 21, 2015 at 2:16 PM, Erik Falor <ewf...@gmail.com> wrote:
>
> Could you post the results of launching vimdiff on these files in
> profile mode? Something like the following:
>
> $ vimdiff --statuptime profile.txt file1.gz file2.gz
>

I am not the OP but have a follow up question. Is it possible to
document the --startuptime option in the man page? It works in vim
7.4.488 on Debian but is not listed in the man page.

thanks
--
Kamaraju S Kusumanchi
http://raju.shoutwiki.com/wiki/Blog

Christian Brabandt

unread,
Mar 1, 2015, 5:12:31 AM3/1/15
to vim...@googlegroups.com
Hi kamaraju!

On Sa, 28 Feb 2015, kamaraju kusumanchi wrote:

> I am not the OP but have a follow up question. Is it possible to
> document the --startuptime option in the man page? It works in vim
> 7.4.488 on Debian but is not listed in the man page.

Indeed. But it is documented at :h startup
By the way, we are accepting patches at vim...@vim.org ;)

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
K. K. Lacke
Reply all
Reply to author
Forward
0 new messages