Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack-objects: thread the path-based compression
Adapting the implementation of ll_find_deltas(), create a threaded version of the --path-walk compression step in 'git pack-objects'. Using the Git repository as a test repo, the p5313 performance test shows that the resulting size of the repo is the same, but the threaded implementation gives gains of varying degrees depending on the number of objects being packed. (This was tested on a 16-core machine.) Test HEAD~1 HEAD -------------------------------------------------------------- 5313.6: thin pack with --path-walk 0.01 0.01 +0.0% 5313.7: thin pack size with --path-walk 475 475 +0.0% 5313.12: big pack with --path-walk 2.27 2.01 -11.5% 5313.13: big pack size with --path-walk 13.3M 13.3M +0.0% 5313.18: repack with --path-walk 98.00 41.53 -57.6% 5313.19: repack size with --path-walk 215.0K 215.0K +0.0% Signed-off-by: Derrick Stolee <stolee@gmail.com>
- Loading branch information