fix: remove left-over debug prints

This commit is contained in:
Vikram Rangnekar 2020-05-29 02:27:53 -04:00
parent bac89d8301
commit 701b2f3bfd
2 changed files with 7 additions and 14 deletions

View File

@ -109,8 +109,6 @@ func (co *Compiler) compileQueryWithMetadata(
st := NewIntStack()
i := 0
fmt.Println(">", len(qc.Roots))
io.WriteString(c.w, `SELECT jsonb_build_object(`)
for _, id := range qc.Roots {
if i != 0 {
@ -263,11 +261,6 @@ func (c *compilerContext) renderPluralSelect(sel *qcode.Select, ti *DBTableInfo)
}
func (c *compilerContext) renderRootSelect(sel *qcode.Select) error {
b := &bytes.Buffer{}
int32String(b, sel.ID)
fmt.Println(">>", sel.ID, sel.ParentID, " --- ", b.String())
io.WriteString(c.w, `'`)
io.WriteString(c.w, sel.FieldName)
io.WriteString(c.w, `', `)

View File

@ -1,11 +1,11 @@
goos: darwin
goarch: amd64
pkg: github.com/dosco/super-graph/core/internal/qcode
BenchmarkQCompile-16 136509 8310 ns/op 3756 B/op 28 allocs/op
BenchmarkQCompileP-16 482752 2237 ns/op 3793 B/op 28 allocs/op
BenchmarkParse-16 139410 8552 ns/op 3902 B/op 18 allocs/op
BenchmarkParseP-16 540768 2132 ns/op 3903 B/op 18 allocs/op
BenchmarkSchemaParse-16 222925 5259 ns/op 3968 B/op 57 allocs/op
BenchmarkSchemaParseP-16 775363 1595 ns/op 3968 B/op 57 allocs/op
BenchmarkQCompile-16 120888 9236 ns/op 3755 B/op 28 allocs/op
BenchmarkQCompileP-16 502248 2620 ns/op 3795 B/op 28 allocs/op
BenchmarkParse-16 128370 9294 ns/op 3902 B/op 18 allocs/op
BenchmarkParseP-16 575752 2340 ns/op 3903 B/op 18 allocs/op
BenchmarkSchemaParse-16 212048 5779 ns/op 3968 B/op 57 allocs/op
BenchmarkSchemaParseP-16 630918 1686 ns/op 3968 B/op 57 allocs/op
PASS
ok github.com/dosco/super-graph/core/internal/qcode 8.311s
ok github.com/dosco/super-graph/core/internal/qcode 7.710s