redrabbit / git.limo

A Git source code management tool powered by Elixir with easy installation & high extensibility.
https://git.limo
MIT License
497 stars 42 forks source link

Optimise Git push when writing to ODB #68

Closed redrabbit closed 3 years ago

redrabbit commented 4 years ago

The current implementation (see GitRekt.WireProtocol.ReceivePack.apply_pack/2) is writing the objects one by one. When pushing a lot of objects, this tends to take quite some time...

See libgit2/src/transports/smart_protocol.c for usage example.

redrabbit commented 3 years ago

Commit 7ce575e and 33632b5 allow to write PACK files instead of loose objects to the ODB.