1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 05:11:47 +02:00

libgit2, GitRepo: Write thin packfiles

libgit2 didn't write thin ones, hence the patch.

This should improve performance on systems with weak I/O in ~/.cache,
especially in terms of operations per second, or where system calls
are slower. (macOS, VMs?)
This commit is contained in:
Robert Hensing 2024-08-19 13:21:44 +02:00
parent cb4b9be458
commit 5dd6c4f062
4 changed files with 343 additions and 0 deletions

View file

@ -80,6 +80,8 @@ struct GitRepo
virtual ref<GitFileSystemObjectSink> getFileSystemObjectSink() = 0;
virtual void flush() = 0;
virtual void fetch(
const std::string & url,
const std::string & refspec,