{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12259","labels_url":"https://api.github.com/repos/golang/go/issues/12259/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12259/comments","events_url":"https://api.github.com/repos/golang/go/issues/12259/events","html_url":"https://github.com/golang/go/issues/12259","id":102395648,"number":12259,"title":"cmd/link: combining dwarf on darwin can be very slow","user":{"login":"ianic","id":35909,"avatar_url":"https://avatars.githubusercontent.com/u/35909?v=3","gravatar_id":"","url":"https://api.github.com/users/ianic","html_url":"https://github.com/ianic","followers_url":"https://api.github.com/users/ianic/followers","following_url":"https://api.github.com/users/ianic/following{/other_user}","gists_url":"https://api.github.com/users/ianic/gists{/gist_id}","starred_url":"https://api.github.com/users/ianic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianic/subscriptions","organizations_url":"https://api.github.com/users/ianic/orgs","repos_url":"https://api.github.com/users/ianic/repos","events_url":"https://api.github.com/users/ianic/events{/privacy}","received_events_url":"https://api.github.com/users/ianic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/26","html_url":"https://github.com/golang/go/milestones/Go1.5.1","labels_url":"https://api.github.com/repos/golang/go/milestones/26/labels","id":1263435,"number":26,"title":"Go1.5.1","description":"Go 1.5.1 release","creator":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":4,"state":"open","created_at":"2015-08-19T20:38:28Z","updated_at":"2015-08-25T21:28:36Z","due_on":"2015-09-19T07:00:00Z","closed_at":null},"comments":12,"created_at":"2015-08-21T14:47:46Z","updated_at":"2015-08-25T22:29:51Z","closed_at":null,"body":"I'm noticing ~15x increase in build time when switched to go 1.5.\r\nIt is somehow connected with a package github.com/ry/v8worker - binding for v8 javascript engine.\r\nI'm building on OS X.\r\n \r\nThis is a trivial program:\r\n```go\r\npackage main\r\nimport _ \"github.com/ry/v8worker\"\r\n\r\nfunc main() {\r\n}\r\n```\r\n**1.4** build time:\r\nreal\t0m1.075s\r\nuser\t0m0.964s\r\nsys\t0m0.108s\r\n\r\n**1.5** build time:\r\nreal\t0m16.816s\r\nuser\t0m16.225s\r\nsys\t0m1.226s\r\n\r\n\r\nGo 1.5 spends almost all of the time on the **link** step:\r\n/usr/local/Cellar/go/1.5/libexec/pkg/tool/darwin_amd64/link -o $WORK/slow_build/_obj/exe/a.out -L $WORK -L /Users/ianic/work/web/src/golang/pkg/darwin_amd64 -extld=clang++ -buildmode=exe -buildid=14ca37ec220e553c7bf9829fe97751df5a041f5f $WORK/slow_build.a\r\n\r\n\r\n**1.4 output for: time go build -v -x**\r\nWORK=/var/folders/dx/p9b300dd27dcbqcrz0h9kn800000gn/T/go-build829145301\r\nslow_build\r\nmkdir -p $WORK/slow_build/_obj/\r\nmkdir -p $WORK/slow_build/_obj/exe/\r\ncd /Users/ianic/work/web/src/golang/src/slow_build\r\n/usr/local/Cellar/go/1.4.2/libexec/pkg/tool/darwin_amd64/6g -o $WORK/slow_build.a -trimpath $WORK -p slow_build -complete -D _/Users/ianic/work/web/src/golang/src/slow_build -I $WORK -I /Users/ianic/work/web/src/golang/pkg/darwin_amd64 -pack ./main.go\r\ncd .\r\n/usr/local/Cellar/go/1.4.2/libexec/pkg/tool/darwin_amd64/6l -o $WORK/slow_build/_obj/exe/a.out -L $WORK -L /Users/ianic/work/web/src/golang/pkg/darwin_amd64 -extld=clang++ $WORK/slow_build.a\r\nmv $WORK/slow_build/_obj/exe/a.out slow_build\r\n\r\nreal\t0m1.075s\r\nuser\t0m0.964s\r\nsys\t0m0.108s\r\n\r\n\r\n**1.5 output for: time go build  -v -x**\r\nWORK=/var/folders/dx/p9b300dd27dcbqcrz0h9kn800000gn/T/go-build145414805\r\nslow_build\r\nmkdir -p $WORK/slow_build/_obj/\r\nmkdir -p $WORK/slow_build/_obj/exe/\r\ncd /Users/ianic/work/web/src/golang/src/slow_build\r\n/usr/local/Cellar/go/1.5/libexec/pkg/tool/darwin_amd64/compile -o $WORK/slow_build.a -trimpath $WORK -p main -complete -buildid 14ca37ec220e553c7bf9829fe97751df5a041f5f -D _/Users/ianic/work/web/src/golang/src/slow_build -I $WORK -I /Users/ianic/work/web/src/golang/pkg/darwin_amd64 -pack ./main.go\r\ncd .\r\n/usr/local/Cellar/go/1.5/libexec/pkg/tool/darwin_amd64/link -o $WORK/slow_build/_obj/exe/a.out -L $WORK -L /Users/ianic/work/web/src/golang/pkg/darwin_amd64 -extld=clang++ -buildmode=exe -buildid=14ca37ec220e553c7bf9829fe97751df5a041f5f $WORK/slow_build.a\r\nmv $WORK/slow_build/_obj/exe/a.out slow_build\r\n\r\nreal\t0m16.816s\r\nuser\t0m16.225s\r\nsys\t0m1.226s"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/134760509","html_url":"https://github.com/golang/go/issues/12259#issuecomment-134760509","issue_url":"https://api.github.com/repos/golang/go/issues/12259","id":134760509,"user":{"login":"minux","id":135652,"avatar_url":"https://avatars.githubusercontent.com/u/135652?v=3","gravatar_id":"","url":"https://api.github.com/users/minux","html_url":"https://github.com/minux","followers_url":"https://api.github.com/users/minux/followers","following_url":"https://api.github.com/users/minux/following{/other_user}","gists_url":"https://api.github.com/users/minux/gists{/gist_id}","starred_url":"https://api.github.com/users/minux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minux/subscriptions","organizations_url":"https://api.github.com/users/minux/orgs","repos_url":"https://api.github.com/users/minux/repos","events_url":"https://api.github.com/users/minux/events{/privacy}","received_events_url":"https://api.github.com/users/minux/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T22:29:51Z","updated_at":"2015-08-25T22:29:51Z","body":"No, please feel free to file a new one. But please remember to include a\nway to reproduce the problem.\n"}}