I need to find all git repositories in some folders. Previously, I used find . -type -d -name .git. Now I rewrote this in Python 3 and use os.walk. It seems to take way longer for it to traverse the tree than the simple find.
How can I speed this up?
There are many threads about
os.walk()on SO, it's dead slow.