Reduce alllocations done by the stack

This commit is contained in:
Vikram Rangnekar
2019-06-16 20:51:36 -04:00
parent 45c283f2a7
commit cd6d6f97a8
3 changed files with 36 additions and 37 deletions

View File

@ -1,7 +1,7 @@
goos: darwin
goarch: amd64
pkg: github.com/dosco/super-graph/psql
BenchmarkCompile-8 100000 15246 ns/op 2823 B/op 53 allocs/op
BenchmarkCompileParallel-8 300000 4559 ns/op 2848 B/op 53 allocs/op
BenchmarkCompile-8 100000 15092 ns/op 3562 B/op 36 allocs/op
BenchmarkCompileParallel-8 300000 4684 ns/op 3592 B/op 36 allocs/op
PASS
ok github.com/dosco/super-graph/psql 3.116s
ok github.com/dosco/super-graph/psql 3.133s