-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/vgo: slow module lookup for single big repo #25896
Comments
@utrack 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):
|
This may be fixed by https://golang.org/cl/119055. Could you try a vgo built from vgo commit |
The problem is, if we fetch |
This could well be related to #24687 (comment). @rsc has said he's going to look again at this and related issues in the coming weeks. |
@utrack can you try this again? A couple of relevant CLs have been merged in the meantime |
Looks much faster now. Thank you! |
Here's an example output of
vgo build
for a project that imports k8s api: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?
The text was updated successfully, but these errors were encountered: