Closed
Description
I have compared speed of equivalent to git show <revision>:<pathname>
in both pygit2 and GitPython (the pure-Python implementation). In all other cases that I have tested pygit2 is faster, but for very large files git show
/ git cat-file
equivalent is slower.
pygit2 code:
blob = repo.revparse_single(commit + ':' + path)
result = blob.data
GitPython code:
blob = repo.rev_parse(commit + ':' + path)
result = blob.data_stream.read()
Do you have any ideas why pygit2 is slower here?
P.S. would it be difficult to add streaming access?
Metadata
Metadata
Assignees
Labels
No labels