On Fri, Nov 13, 2015 at 03:19:07PM +0100, Andreas Krey wrote: > On Sat, 04 Apr 2015 15:55:07 +0000, Jeff King wrote: > ... > > I think this is the same issue that was discussed here: > > > > http://thread.gmane.org/gmane.comp.version-control.git/265560/focus&5585 > > > > There is some discussion of a possible fix in that thread. I was hoping > > that Andreas was going to look further and produce a patch, but I > > imagine he got busy with other things. > > That about sums it up. However I now have a similar issue; > git ls-files shows the same behaviour (takes relatively > forever at 100% CPU), and runs instantly with my patch > from back then. Nothing seems to have changed, so I > may have another chance to look into this. Yeah, I think Erik's patch in 0179ca7 (clean: improve performance when removing lots of directories, 2015-06-15) handles the git-clean case the way we want to, but all of the other calls to resolve_gitlink_ref need to be inspected and fixed similarly. The one your are hitting with ls-files is probably in dir.c:treat_directory. -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html