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:
parent
cb4b9be458
commit
5dd6c4f062
4 changed files with 343 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue