Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: use `git push` to avoid `libgit2` push
Merged fintohaps opened 1 year ago

In issue #2836 of libgit2, the speed of libgit2’s file:// protocol for git operations is found to be very slow. This is further corrobarated by rad init taking 13 hours to initialise the hardenedbsd ports repository.

There are two areas where the heartwood project uses libgit2 to push using the file protocol. The first is when via the trasnport::local smart transport registration and the second is the final push to storage in the git-remote-rad binary.

When both these push operations are changed to use the git binary instead, the ports repository can be initialised in less than 10 minutes (nearly 100x speed up).

This change is clearly required if heartwood wishes to support larger repositories.

fintohaps opened with revision e8842949 on base 3b5fac17 +58 -11 1 year ago

In issue #2836 of libgit2, the speed of libgit2’s file:// protocol for git operations is found to be very slow. This is further corrobarated by rad init taking 13 hours to initialise the hardenedbsd ports repository.

There are two areas where the heartwood project uses libgit2 to push using the file protocol. The first is when via the trasnport::local smart transport registration and the second is the final push to storage in the git-remote-rad binary.

When both these push operations are changed to use the git binary instead, the ports repository can be initialised in less than 10 minutes (nearly 100x speed up).

This change is clearly required if heartwood wishes to support larger repositories.

fintohaps pushed revision 2 d28d819a on base 3b5fac17 +70 -11 1 year ago

Changes:

  • Avoid unwrap
  • Use helper working_copy function to get a working copy’s directory, one level above the .git folder.
fintohaps pushed revision 3 47f8d394 on base 3b5fac17 +69 -11 1 year ago

Changes:

  • remove emacs autosave file
lorenz rejected · 2 comments 1 year ago
fintohaps pushed revision 4 fc97400a on base 3b5fac17 +64 -13 1 year ago

Changes:

  • Remove helper in favour of using git2::Repository::work_dir
lorenz pushed revision 5 771bc700 on base 433483e0 +64 -13 1 year ago

Rebased.

lorenz merged revision 771bc700 at 8fd04483 1 year ago