vim-package-info icon indicating copy to clipboard operation
vim-package-info copied to clipboard

Buffer updates API

Open KillTheMule opened this issue 6 years ago • 1 comments

From the "might be unneccessary" department:

I don't understand js, so I could not really figure out the workings of this plugin. But I wanted to remark the following: If you're interested in efficiency, you might want to have a look at the buffer updates API of nvim, which tells you which lines exactly changed on edits, and lets you only update that specific entry, rather than querying everything all the time.

Maybe you're doing that already, just figured a suggestion might of interest to you :)

KillTheMule avatar Apr 20 '19 13:04 KillTheMule

Thank you, that is a good idea. But I don't know if we need it right now.

I am not expecting a config file to be all that big to start with. That too, we will just be looking at only the dependency section. I am also caching the latest version so that the fetch to check for the latest version only happen once. Plus the whole thing is async.

That said, if we ever run into performance issue I will sure look into this.

meain avatar Apr 20 '19 15:04 meain