x/pkgsite: slow to download std when running locally #60114
Steps to reproduce:
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.
The text was updated successfully, but these errors were encountered:
Thanks. I tried it twice, once with
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.
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.