diff options
author | Mark Haines <mjark@negativecurvature.net> | 2017-09-08 15:56:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 15:56:52 +0100 |
commit | 31f6c21d9801c93b2e1b52ce40551545f6645019 (patch) | |
tree | 637a351f662b7a26629d05ec503765997d4e02d8 /hooks | |
parent | 4d1d503d43232192d9581c498af0aaf71afb7f81 (diff) |
Enable GC for the pre-commit hook, and tune it for throughput (#219)
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/pre-commit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit index 8d71b1c6..b10073ca 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -2,6 +2,8 @@ set -eu +# Tune the GC to use more memory to reduce the number of garbage collections +export GOGC=400 export GOPATH="$(pwd):$(pwd)/vendor" export PATH="$PATH:$(pwd)/vendor/bin:$(pwd)/bin" @@ -10,7 +12,7 @@ go install github.com/alecthomas/gometalinter/ gometalinter --config=linter.json ./... --install echo "Looking for lint..." -gometalinter --config=linter.json ./... +gometalinter --config=linter.json ./... --enable-gc echo "Double checking spelling..." misspell -error src *.md |