mirror of
https://github.com/1f349/dendrite.git
synced 2025-01-22 15:26:29 +00:00
Enable GC for the pre-commit hook, and tune it for throughput (#219)
This commit is contained in:
parent
4d1d503d43
commit
31f6c21d98
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -eu
|
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 GOPATH="$(pwd):$(pwd)/vendor"
|
||||||
export PATH="$PATH:$(pwd)/vendor/bin:$(pwd)/bin"
|
export PATH="$PATH:$(pwd)/vendor/bin:$(pwd)/bin"
|
||||||
|
|
||||||
@ -10,7 +12,7 @@ go install github.com/alecthomas/gometalinter/
|
|||||||
gometalinter --config=linter.json ./... --install
|
gometalinter --config=linter.json ./... --install
|
||||||
|
|
||||||
echo "Looking for lint..."
|
echo "Looking for lint..."
|
||||||
gometalinter --config=linter.json ./...
|
gometalinter --config=linter.json ./... --enable-gc
|
||||||
|
|
||||||
echo "Double checking spelling..."
|
echo "Double checking spelling..."
|
||||||
misspell -error src *.md
|
misspell -error src *.md
|
||||||
|
Loading…
Reference in New Issue
Block a user