Skip to content

Commit

Permalink
cmd/go: parallelize package loading
Browse files Browse the repository at this point in the history
load.PackageAndErrors now preloads data used to build load.Package
structures. Multiple packages may be preloaded in parallel, so this
parallelizes most of the package loading work.

The actual package construction and error-checking process is still
sequential, since this process needs to detect and report cycles.

Fixes #29758

Change-Id: Icf37e6669836ce8aad076e34fd895f97f4f3f9e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/161397
Run-TryBot: Jay Conrod <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Bryan C. Mills <[email protected]>
  • Loading branch information
Jay Conrod committed Apr 5, 2019
1 parent ead8956 commit cebc4e5
Show file tree
Hide file tree
Showing 3 changed files with 416 additions and 182 deletions.
Loading

0 comments on commit cebc4e5

Please sign in to comment.