]> git.proxmox.com Git - libgit2.git/commit - src/transports/local.c
local: create pack with multiple threads
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 11 Mar 2015 16:16:39 +0000 (17:16 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 11 Mar 2015 16:24:14 +0000 (17:24 +0100)
commit0ef54a63580171b341d85dee65c063bee31ba35f
treeeea6dec02c0c02546a24b2b98bd6def61b29d563
parent61ccba0d5630eee7f88d34c872b71777df124c70
local: create pack with multiple threads

The default behaviour for the packbuilder is to perform the work in a
single thread, which is fine for the public API, but we currently have
no way for a user to determine the number of threads to use when
creating the packfile, which makes our clone behaviour over the
filesystem quite a bit slower than what git offers.

This is a very particular scenario, in which we avoid spawning git by
being ourselves the server-side, so it's probably ok to auto-set the
threading, as the upload-pack process would do if we were talking to
git.
CHANGELOG.md
src/transports/local.c