Skip to content

cmd/compile: build time increased in go 1.15 #40781

@nikgalushko

Description

@nikgalushko

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

$ go version
go1.15 darwin/amd64

Does this issue reproduce with the latest release?

No.

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/n.galushko/go/bin"
GOCACHE="/Users/n.galushko/Library/Caches/go-build"
GOENV="/Users/n.galushko/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/n.galushko/go/pkg/mod"
GONOPROXY="gitlab.inplatlabs.ru/*"
GONOSUMDB="gitlab.inplatlabs.ru/*"
GOOS="darwin"
GOPATH="/Users/n.galushko/go"
GOPRIVATE="gitlab.inplatlabs.ru/*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/n.galushko/Projects/vkpay/go_vkpay/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/2b/dlwj9v052dddcbf2lcxt0_lw0000gp/T/go-build902696119=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I compared three projects: remark42, kittenhouse, nda project (35k loc). I checked build time and binary size on my macbook pro 15 2017 i7 2.9Ghz. Build options: go clean -cache && time go build. See the result on chart (less is better).
Снимок экрана 2020-08-13 в 22 12 32

What did you expect to see?

Build time has not changed.

What did you see instead?

Build time increased about 8-9%.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Darwin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions