-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/pkgsite: slow to download std when running locally #60114
Comments
There's the related #57742 |
Thanks. I tried it twice, once with |
Hi @qiulaidongfeng, I think you originally reported this slow download issue in #59056. Does that still happen for you in Go 1.21? I just tried to reproduce this in Go 1.21 with a fresh installation of cmd/pkgsite, and it seemed very fast to go to the (The reason I ended up here was I had just re-read the comment on cmd/pkgsite documentation that says "Although standard library packages will work by default, the docs can take a while to appear the first time because the Go repo must be cloned and processed", and I was thinking about filing an issue asking if that git clone could be avoided based on the new Go 1.21 features around downloading and caching a copy of the Go toolchain as a module zip file... but then it seemed fast when I tried it just now, so maybe it is already faster than it was when first reported... or maybe I just didn't reproduce correctly, including I am not on an international link or maybe I wasn't fast enough with my checks, and hence the question to you. I haven't dug very deep here). |
I try in today , again look slow to download std when running locally. I look
Then I ran pkgsite in the src subdirectory of a git clone go directory, tried to get the std documentation, got no response for a long time, and finally saw 500 Internal Server Error and
Note: I used the 5G network speed and I saw that during pkgsite operation, there were 1 second speeds of 4-5M, and the average was estimated to be about 1M when in use, it seems that this problem has not been solved. pkgsite downloads something too big causing slow. See #64920 and #61976 , If my use godoc, my experience is don't have to use the Internet. |
Steps to reproduce:
$ go run golang.org/x/pkgsite/cmd/pkgsite@master &
$ open http://localhost:8080
Ideally we would eliminate step 5. Is it necessary to select std@latest when there's a recent version of std already already installed?
Perhaps std@installedversion could also be offered on the "Or browse local modules:" menu, since just as it is desirable for the docs to reflect the local edits to modules, so too it is desirable to show the version of Go that is installed locally.
Loosely related:
The text was updated successfully, but these errors were encountered: