Skip to content

x/pkgsite: slow to download std when running locally #60114

Open
@adonovan

Description

@adonovan

Steps to reproduce:

  • $ go run golang.org/x/pkgsite/cmd/pkgsite@master &
  • $ open http://localhost:8080
  • Enter "fmt", hit Return, see search results page.
  • Click first link for package fmt
  • Wait 17s for download of std@latest.
  • See documentation for fmt.

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Performancepkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions