Cloning large repo in libgit2 slower than `git clone`
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 10.6k
- Fork
- 2.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I didn't see this when I briefly checked the list of issues, so sorry if it's already been reported. Both libgit2 and git clone spend roughly the same amount of time downloading (around 30 seconds or so), but the "Resolving deltas" stage is much slower using libgit2.
Reproduction steps
I just cloned git://sourceware.org/git/glibc.git using the example code in the repository.
Expected behavior
Both libgit2 and git clone take roughly the same amount of time.
Actual behavior
libgit2 takes around 4 minutes, whereas git clone takes about 1.5 minutes.
Version of libgit2 (release number or SHA1)
0.27.0 (I've also tested whatever the Rust crate git2 downloads by default, and the speed was about the same).
Operating system(s) tested
Linux alex-linux 4.16.13-2-ARCH #1 SMP PREEMPT Fri Jun 1 18:46:11 UTC 2018 x86_64 GNU/Linux
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il codice di esempio nel repository e riproduci il clone di git://sourceware.org/git/glibc.git usando libgit2 0.27.0, confrontandolo con git clone su Linux. Analizza la fase resolving-deltas; il lavoro è completato quando il tempo di clone di libgit2 viene portato sostanzialmente più vicino al tempo riportato da git clone.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, git
- Ambito
- backend, performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100