File tree Expand file tree Collapse file tree 4 files changed +256
-59
lines changed Expand file tree Collapse file tree 4 files changed +256
-59
lines changed Original file line number Diff line number Diff line change @@ -630,9 +630,17 @@ pack.deltaCacheSize::
630
630
A value of 0 means no limit. Defaults to 0.
631
631
632
632
pack.deltaCacheLimit::
633
- The maxium size of a delta, that is cached in
633
+ The maximum size of a delta, that is cached in
634
634
gitlink:git-pack-objects[1]. Defaults to 1000.
635
635
636
+ pack.threads::
637
+ Specifies the number of threads to spawn when searching for best
638
+ delta matches. This requires that gitlink:git-pack-objects[1]
639
+ be compiled with pthreads otherwise this option is ignored with a
640
+ warning. This is meant to reduce packing time on multiprocessor
641
+ machines. The required amount of memory for the delta search window
642
+ is however multiplied by the number of threads.
643
+
636
644
pull.octopus::
637
645
The default merge strategy to use when pulling multiple branches
638
646
at once.
Original file line number Diff line number Diff line change @@ -169,6 +169,14 @@ base-name::
169
169
length, this option typically shrinks the resulting
170
170
packfile by 3-5 per-cent.
171
171
172
+ --threads=<n>::
173
+ Specifies the number of threads to spawn when searching for best
174
+ delta matches. This requires that pack-objects be compiled with
175
+ pthreads otherwise this option is ignored with a warning.
176
+ This is meant to reduce packing time on multiprocessor machines.
177
+ The required amount of memory for the delta search window is
178
+ however multiplied by the number of threads.
179
+
172
180
--index-version=<version>[,<offset>]::
173
181
This is intended to be used by the test suite only. It allows
174
182
to force the version for the generated pack index, and to force
Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ all::
124
124
# If not set it defaults to the bare 'wish'. If it is set to the empty
125
125
# string then NO_TCLTK will be forced (this is used by configure script).
126
126
#
127
+ # Define THREADED_DELTA_SEARCH if you have pthreads and wish to exploit
128
+ # parallel delta searching when packing objects.
129
+ #
127
130
128
131
GIT-VERSION-FILE : .FORCE-GIT-VERSION-FILE
129
132
@$(SHELL_PATH ) ./GIT-VERSION-GEN
@@ -675,6 +678,11 @@ ifdef NO_MEMMEM
675
678
COMPAT_OBJS += compat/memmem.o
676
679
endif
677
680
681
+ ifdef THREADED_DELTA_SEARCH
682
+ BASIC_CFLAGS += -DTHREADED_DELTA_SEARCH
683
+ EXTLIBS += -lpthread
684
+ endif
685
+
678
686
ifeq ($(TCLTK_PATH ) ,)
679
687
NO_TCLTK =NoThanks
680
688
endif
You can’t perform that action at this time.
0 commit comments