-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build all commands at the same time #626
Build all commands at the same time #626
Conversation
In Go it's much more efficient to build several commands in the same `go build` because the build has to load most of the dependency tree each time. Roughly 50% on my machine: Together (go1.2 on OS X): real 0m4.049s user 0m8.387s sys 0m2.766s Separate: real 0m13.392s user 0m12.420s sys 0m6.882s
echo "+++ Building ${b}" | ||
go build "${KUBE_GO_PACKAGE}"/cmd/${b} | ||
done | ||
go build $(for b in $BINARIES; do echo "${KUBE_GO_PACKAGE}"/cmd/${b}; done) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something that's been bugging me for a while is that test-go.sh takes package names with a preceding pkg/ but build-go.sh adds an implied cmd/. Since you're changing this anyway, could you remove the implied cmd/ here? (That way tab autocomplete works ;) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
Update places that depend on it.
LGTM |
Build all commands at the same time
Fix build. change event.Event to info.Event.
Fixed kubernetes#589: when rebooting, failed to start sshd service after kube-down
Fixed kubernetes#589: when rebooting, failed to start sshd service after kube-down
Dockerfile for GitBook
Ensure multi-az test is run in the serial job
In Go it's much more efficient to build several commands in the same
go build
because the build has to load most of the dependency treeeach time. Roughly 50% on my machine:
Together (go1.2 on OS X):
Separate: