Skip to content

Return early if a directory isn't managed by git #10

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

Merged
merged 1 commit into from
Dec 8, 2016

Conversation

cjwatson
Copy link

This makes things much faster for large non-git trees that happen to
have setuptools_git among their indirect requirements. For example,
this takes Launchpad's "python setup.py egg_info" from 16 seconds to 2
seconds for me.

#6 would probably help as well, not to mention optimising the realpath handling so that it doesn't unnecessarily re-stat every path element for every file in your tree, which is a candidate for http://accidentallyquadratic.tumblr.com/ . But this is easy and non-intrusive.

This makes things much faster for large non-git trees that happen to
have setuptools_git among their indirect requirements.  For example,
this takes Launchpad's "python setup.py egg_info" from 16 seconds to 2
seconds for me.
@msabramo
Copy link
Owner

msabramo commented Dec 8, 2016

Thanks, @cjwatson!

@msabramo msabramo merged commit ed8da08 into msabramo:master Dec 8, 2016
@cjwatson cjwatson deleted the early-return branch December 8, 2016 23:29
@msabramo
Copy link
Owner

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.

2 participants