Skip to content

very slow and memory taxing clone of a big repo #147

@ghost

Description

This is on 9front, go 1.11. Cloning small/medium size repos works fine;
cloning big(ger) repos is impossible to see through completion due
to time and space limitations of my digital computer:

; dgit clone https://github.com/golang/go
...
Indexing objects: 20% (71561/356126)
; ps | grep dgit
glenda         8739    0:12   0:39  1437232K Pread    dgit

It took half an hour to get to the above state, after which I killed
the process to avoid running out of memory.

For comparison, same network, similar machine, running OpenBSD,
with standard git:

$ time git clone https://github.com/golang/go
...
    1m38.04s real     0m32.31s user     0m09.08s system

and with dgit:

$ time dgit clone https://github.com/golang/go
...
Indexing objects: 23% (81037/356126)
fatal error: runtime: out of memory
... [ stack dump ] ...
    2m48.82s real    0m51.92s user    0m41.69s system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions