From a4d86693394ba9b181b5928c1c6e8c31c9bb2b64 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Mon, 30 Jun 2025 17:18:45 -0400 Subject: Implement compiled query execution --- pkg/query/optimizer.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pkg/query/optimizer.go') diff --git a/pkg/query/optimizer.go b/pkg/query/optimizer.go index cdb2455..3c435e8 100644 --- a/pkg/query/optimizer.go +++ b/pkg/query/optimizer.go @@ -1,8 +1,6 @@ package query import ( - "fmt" - "os" "slices" "strings" "sync" @@ -458,11 +456,9 @@ func (o *Optimizer) Tighten() { for j, s2 := range util.FilterIter(stmts[i+1:], func(s Statement) bool { return s.Operator == OP_AP }) { val2 := strings.ToLower(s2.Value.(StringValue).S) if strings.Contains(val2, val1) { - fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val2, val1, val2) // NOTE: slicing stmts offsets the all indices by 1, hence the correction removals[j+1] = true } else if strings.Contains(val1, val2) { - fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val1, val2, val1) removals[i] = true } } -- cgit v1.2.3