提交 31f6c21d 编写于 作者: M Mark Haines 提交者: GitHub

Enable GC for the pre-commit hook, and tune it for throughput (#219)

上级 4d1d503d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册