Slow "go build" After Go Upgrade
After updating their version of Go from 1.2.1 to 1.3 on Windows 7, users have experienced a significant slowdown in the execution time of "go build." This issue has concerned developers, who are now seeking solutions to restore previous build speeds.
The root cause of the delay likely lies in recompilation of dependencies each time a build is attempted. To address this, it is recommended to use the "go install -a mypackage" command to rebuild all dependencies. Additionally, clearing the $GOPATH/pkg directory can eliminate the possibility of lingering old object files interfering with the build process.
Utilizing the "-x" flag during the build process can provide insights into the behavior of the toolchain and identify any incompatibilities in versions that may be contributing to the slowdown. By implementing these measures, developers can resolve the issue and optimize their build times, reinstating the efficiency of "go build" operations.
The above is the detailed content of Why Is My 'go build' So Slow After Updating to Go 1.3 on Windows 7?. For more information, please follow other related articles on the PHP Chinese website!