Skip to content

cmd/compile: compile time takes far longer with Go 1.7.5 than three prior Go releases #19096

@codekoala

Description

@codekoala

What version of Go are you using (go version)?

go version go1.7.5 linux/amd64

What operating system and processor architecture are you using (go env)?

Arch Linux

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/codekoala/dev/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build837706947=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?

% docker run -it --rm golang:1.4 /bin/bash -c "go version ; time go get -u github.com/trustpath/sequence/cmd/sequence"
go version go1.4.3 linux/amd64

real	0m11.227s
user	0m4.493s
sys	0m0.747s


% docker run -it --rm golang:1.5 /bin/bash -c "go version ; time go get -u github.com/trustpath/sequence/cmd/sequence"
go version go1.5.4 linux/amd64

real	0m11.812s
user	0m7.930s
sys	0m0.910s


% docker run -it --rm golang:1.6 /bin/bash -c "go version ; time go get -u github.com/trustpath/sequence/cmd/sequence"
go version go1.6.4 linux/amd64

real	0m12.258s
user	0m8.063s
sys	0m0.663s


% docker run -it --rm golang:1.7 /bin/bash -c "go version ; time go get -u github.com/trustpath/sequence/cmd/sequence"
go version go1.7.5 linux/amd64

real	1m26.425s
user	1m21.607s
sys	0m1.087s


% docker run -it --rm golang:1.8 /bin/bash -c "go version ; time go get -u github.com/trustpath/sequence/cmd/sequence"
go version go1.8rc3 linux/amd64

real	0m31.772s
user	0m30.927s
sys	0m1.117s

What did you expect to see?

I expected Go 1.7 and 1.8 to be at least as fast as previous versions or maybe a little slower.

What did you see instead?

Go 1.7.5 took significantly longer to compile than three previous versions, and Go 1.8rc3 took 3x as long as 1.4.3, 1.5.4, and 1.6.4.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions