Vundle.vim: Clone bundles in parallel way for speedup

Created on 20 Jan 2013  路  4Comments  路  Source: VundleVim/Vundle.vim

Currently :BundleInstall takes forever for the first time (server setup).

feature won't fix

Most helpful comment

@jdevera might be worth re-opening now that Vim 8 supports async.

All 4 comments

@jdevera So what is your proposed solution?

Could you show us in the code what you would need to change for it to work like you want?

Maybe you can use ideas in shellasync, vim addon sync or gnu parallel utility. This is just quick googling from me.

The general idea is to execute all cmd at once, gather all output to an array and then process as usual. I'm not Vim coder though. I don't know what's possible and what's not.

I've been thinking about this for a while. the problem is that vimscript is not multithreaded, you need to use some of the language bindings in vim to get threads, and one of vundle strong points is to be written in vimscript only.

So I guess one could write a different plugin that could be used just to do async installation based on the g:bundles variable that would have been by vundle previously. I might be a good companion, again, as a side project, for vundle, but it seems that for the time being is kind of out of the scope for vundle.

The methods pointed by @sheerun all use external tool to achieve parallel execution.

I'm closing this, but if I get to implement such plugin, I'll post a comment here so you get notified.

As a workaround, and just for the time being, you can create a set of minimal vimrc with a subset of your bundles each and run several instances of vim -u FILE +"BundleInstall" +"qa!" to speed up the process a bit.

@jdevera might be worth re-opening now that Vim 8 supports async.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

unode picture unode  路  5Comments

genokan picture genokan  路  4Comments

lesterpjy picture lesterpjy  路  4Comments

kobiljonergashev picture kobiljonergashev  路  7Comments

binarykitchen picture binarykitchen  路  3Comments