]> dgit.raspbian.org Git - git-annex.git/commit
cat-file resource pool
authorJoey Hess <joeyh@joeyh.name>
Mon, 20 Apr 2020 17:53:27 +0000 (13:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 20 Apr 2020 19:19:31 +0000 (15:19 -0400)
commitcee6b344b401765fc5e32fe9a9e8610d01571bbb
tree81c64e4b780e96e56f6d92f6d18d7198a9e1aa69
parent87b7b0f202d475d6fb8aa5598e282897477aac65
cat-file resource pool

Avoid running a large number of git cat-file child processes when run with
a large -J value.

This implementation takes care to avoid adding any overhead to git-annex
when run without -J. When run with -J, there is a small bit of added
overhead, to manipulate the resource pool. That optimisation added a
fair bit of complexity.
14 files changed:
Annex.hs
Annex/Branch.hs
Annex/CatFile.hs
Annex/Concurrent.hs
CHANGELOG
CmdLine/Action.hs
CmdLine/GitAnnex/Options.hs
Types/CatFileHandles.hs [new file with mode: 0644]
Types/Concurrency.hs
Utility/CoProcess.hs
Utility/ResourcePool.hs [new file with mode: 0644]
doc/bugs/get_-J8_on_OSX_leads_to_git-annex__58___git__58___createProcess__58___runInteractiveProcess__58___pipe__58___resource_exhausted___40__Too_many_open_files__41__.mdwn
doc/bugs/get_-J8_on_OSX_leads_to_git-annex__58___git__58___createProcess__58___runInteractiveProcess__58___pipe__58___resource_exhausted___40__Too_many_open_files__41__/comment_10_61622483d4f1962f191fb6a791c6817d._comment [new file with mode: 0644]
git-annex.cabal