You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have observed that the test run time on the Zuul project, which makes heavy use of GitPython, has increased by a factor of 1.5 (30 minutes under 2.1.13 to 45 minutes under 3.0.0).
Activity
jeblair commentedon Aug 12, 2019
It looks like the problem may be that many more GitPython actions now result in a call to "git rev-parse" to find the config file location.
I constructed a test script based on one of our unit tests and see the following commands under 2.1.13:
And the same under 3.0.0:
It looks like #894 introduced the change here: https://github.com/gitpython-developers/GitPython/pull/894/files#diff-c276fc3c4df38382ec884e59657b869dR450-R458
Byron commentedon Aug 14, 2019
Does @bdauvergne have an idea how the original issue could be fixed without repeated requests? Is caching possible?
For now I would revert the commit as the performance impact seems substantial, but hope it can be re-added with some sort of caching in place.
This seems to favour performance over fixing an issue with correctness, but I hope we will get a cached version of the reverted fix at some point.
Merge #1963
py-git: Update to 3.0.5
Uncap GitPython
Fix performance regression, see gitpython-developers#906