Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: slow module lookup for single big repo #25896
Here's an example output of
long log under spoiler
It seems to be very slow - each lookup for the same repo takes ~8s - looks like vgo clones the repo each time it encounters a subdirectory.
Maybe we should check if i.e. k8s.io/api was looked up already and stop any additional clones for the subdirs if we've already found the repo containing the subpackage?
As more users tag repos, add go.mod files, and distributed proxies get built, this speed will drastically improve.
I suspect it is the effect of the code represented by this comment (gitrepo/fetch.go):
The problem is, if we fetch