Commit 30285a3c by Josh Triplett

mempack: Use threads when building the pack

The mempack ODB backend creates a packbuilder internally to write out a
pack; call git_packbuilder_set_threads on that packbuilder, to use
threads for packing if available.
parent 27cb4e0e
......@@ -110,6 +110,8 @@ int git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *_back
if (git_packbuilder_new(&packbuilder, repo) < 0)
return -1;
git_packbuilder_set_threads(packbuilder, 0);
for (i = 0; i < db->commits.size; ++i) {
struct memobject *commit = db->commits.ptr[i];
......
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