Giter Site home page Giter Site logo

Comments (13)

mhinz avatar mhinz commented on May 25, 2024

Exactly when does it happen? Everytime the signs get updated?

from vim-signify.

kossnocorp avatar kossnocorp commented on May 25, 2024

Yeah, even if I jumping between splits. Give me time to play with it and I will write more explanation what is actually going on.

btw I'm running my vim inside of tmux.

from vim-signify.

mhinz avatar mhinz commented on May 25, 2024

Let's assume you have 2 splits open. If you switch to a window that contains actual changes it's quick. But when the buffer was not modified since the last commit, it's slow.

Is that right?

from vim-signify.

adarsh avatar adarsh commented on May 25, 2024

I find it's slow on save. I assume it's waiting on git diff?

from vim-signify.

mhinz avatar mhinz commented on May 25, 2024

On a VCS-controlled file?

from vim-signify.

adarsh avatar adarsh commented on May 25, 2024

Yes, under git.

from vim-signify.

mhinz avatar mhinz commented on May 25, 2024

The signs will be updated every time the file gets saved && was modified. If a VCS was already detected, git in this case, it will automatically used from now on. Then yes, it's only processing the output of 'git diff'.

As a general rule for gaining better performance with this plugin:

  1. set g:signify_vcs_list to only the VCS you use. Only these will be checked for when a new file gets opened.

  2. set g:signify_update_on_bufenter to 0, if you often switch between buffers.

  3. If you're working in a file with LOTS of changes, you're free to disable signify temporary using <leader>gt

Otherwise it's really just processing the diff output of an external tool. There's not much to make it a lot faster.

Some things are planned for the 2.0 release, though.

from vim-signify.

kossnocorp avatar kossnocorp commented on May 25, 2024

Hey, sorry for delay, I finally found case when it becoming slow. When I switching between untracked (I'm using git) files every jump takes about 2-3 seconds. I don't know why maybe something wrong with my repo.

from vim-signify.

kossnocorp avatar kossnocorp commented on May 25, 2024

btw thank you for so awesome plugin! It's really great work!

from vim-signify.

mhinz avatar mhinz commented on May 25, 2024

Well, it sounds exactly like what is described in :h signify-options. You want to set signify_vcs_list. :-)

And thanks!

from vim-signify.

kossnocorp avatar kossnocorp commented on May 25, 2024

Thanks! I guess this issue can be closed then :-).

from vim-signify.

positron avatar positron commented on May 25, 2024

May I suggest adding the information about g:signify_vcs_list to the README? When I type "vim signi" in google one of the first suggestions is "vim signify slow". This indicates that a lot of people have this problem and it deserves a more prominent place in the documentation.

Thanks for the awesome plugin!

from vim-signify.

mhinz avatar mhinz commented on May 25, 2024

Well, it's because nobody googles something if it's working blazing fast for him. ;-) And it's one of the very first things in the documentation (read: help file). The README is usually not meant for documentation purposes, at least not for Vim plugins.

But yes, I guess I can throw in anoher sentence. Thanks for the feedback!

EDIT: I stressed the use of g:signify_vcs_list in the README now.

from vim-signify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.