Skip to content

repository: add listall_reference_objects() method#634

Merged
jdavid merged 1 commit intolibgit2:masterfrom
seanfarley:smf/pygit2-upgrade
Jun 2, 2016
Merged

repository: add listall_reference_objects() method#634
jdavid merged 1 commit intolibgit2:masterfrom
seanfarley:smf/pygit2-upgrade

Conversation

@seanfarley
Copy link
Copy Markdown

This allows for efficient reading of many references and their targets,
without incurring the overhead of lookup_reference() (which stats for
a loose ref and then reads packed-refs) which can be expensive on NFS
with thousands of refs.

We've been using this patch for a while and I think it makes sense for upstream pygit2. Any feedback on the idea?

This allows for efficient reading of many references and their targets,
without incurring the overhead of lookup_reference() (which stats for
a loose ref and then reads packed-refs) which can be expensive on NFS
with thousands of refs.
@jdavid jdavid merged commit 78d134c into libgit2:master Jun 2, 2016
@jdavid
Copy link
Copy Markdown
Member

jdavid commented Jun 2, 2016

merged, thanks!

(I think I prefer iterators, but that's more work, and listall_references returns a list anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants