buckaroo icon indicating copy to clipboard operation
buckaroo copied to clipboard

use mailbox-processor for expensive git operations

Open nikhedonia opened this issue 6 years ago • 2 comments

Just noticed that we sometimes fetch the same resource twice in parallel. As a result we half our bandwith and things take twice as long.

Running bash git --no-pager -C /home/gaetano/.buckaroo/cache/https-github-com-buckaroo-pm-boost-math-git-715040a9224ed40c fetch origin master:master
Running bash git --no-pager -C /home/gaetano/.buckaroo/cache/https-github-com-buckaroo-pm-boost-math-git-715040a9224ed40c fetch origin master:master

Note: commands like git.hasCommit must not be cached

nikhedonia avatar Jan 10 '19 19:01 nikhedonia

Does this belong in GitCli or does it belong in a wrapper for IGit?

njlr avatar Jan 10 '19 21:01 njlr

I think those operations need to be cached & sequenced regardless of the implementation. Maybe GitManager?

nikhedonia avatar Jan 11 '19 00:01 nikhedonia