Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Return early if a directory isn't managed by git #10
Conversation
|
Thanks, @cjwatson! |
msabramo
merged commit ed8da08
into
msabramo:master
Dec 8, 2016
cjwatson
deleted the
cjwatson:early-return
branch
Dec 8, 2016
|
Released in https://pypi.python.org/pypi/setuptools-git/1.2. Thanks again, @cjwatson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cjwatson commentedAug 20, 2015
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.