vimdiff performance bug?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

vimdiff performance bug?

Peng Yu
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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: vimdiff performance bug?

Erik Falor
On Sat, Feb 21, 2015 at 10:28:56AM -0600, Peng Yu wrote:
> 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?

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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

attachment0 (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vimdiff performance bug?

kamaraju kusumanchi
On Sat, Feb 21, 2015 at 2:16 PM, Erik Falor <[hidden email]> 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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: vimdiff performance bug?

Christian Brabandt
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 [hidden email] ;)

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
  K. K. Lacke

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.