Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository: add listall_reference_objects() method #634

Merged
merged 1 commit into from
Jun 2, 2016

Conversation

seanfarley
Copy link

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
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.

None yet

3 participants