guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 596ede63a807da564e4ae203c7c52df06166bc37
Author: Ludovic Courtès <[email protected]>
AuthorDate: Tue Jun 16 10:53:03 2026 +0200
gnu: libgit2: Use the SHA1 implementation of OpenSSL.
This leads to a 50% speedup on CPU time on a Skylake x86_64 CPU (20–25% on
wall-clock time, from 15m to 11m) on a full clone of the Guix repository.
* gnu/packages/version-control.scm (libgit2-1.9)[arguments]: Add
“-DUSE_SHA1=HTTPS”.
Signed-off-by: Ludovic Courtès <[email protected]>
Merges: #9332
---
gnu/packages/version-control.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 03d6d74144..cd33ccf42a 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1396,6 +1396,12 @@ other git-like projects such as @code{libgit2}.")
"-DREGEX_BACKEND=pcre2"
"-DUSE_HTTP_PARSER=http-parser"
"-DUSE_SSH=ON" ; cmake fails to find libssh if this is
missing
+
+ ;; Use the SHA1 implementation from OpenSSL rather than the
+ ;; builtin one. This halves the CPU time spent in the
+ ;; "indexing objects" phase when cloning the Guix repo.
+ "-DUSE_SHA1=HTTPS"
+
;; See https://github.com/libgit2/libgit2/issues/7169
#$@(if (target-32bit?)
'("-DCMAKE_C_FLAGS=-D_FILE_OFFSET_BITS=64")