Commit 12e1fff7 by Edward Thomson

Merge pull request #2973 from libgit2/cmn/local-pack-threading

local: create pack with multiple threads
parents 15f58174 0ef54a63
......@@ -15,6 +15,9 @@ v0.22 + 1
removed. Use `git_repository_set_ident()` and
`git_repository_ident()` to override the signature to be used.
* The local transport now auto-scales the number of threads to use
when creating the packfile instead of sticking to one.
### API additions
* Parsing and retrieving a configuration value as a path is exposed
......
......@@ -609,6 +609,9 @@ static int local_download_pack(
data.progress_payload = progress_payload;
data.writepack = writepack;
/* autodetect */
git_packbuilder_set_threads(pack, 0);
if ((error = git_packbuilder_foreach(pack, foreach_cb, &data)) != 0)
goto cleanup;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment