Skip to content

Commit

Permalink
update make target
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Mar 20, 2021
1 parent 4d5cdf7 commit 35cddfe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_make_visitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: check_make_visitor
run: |
misc/git/hooks/visitorgen
misc/git/hooks/asthelpers
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ parser:
make -C go/vt/sqlparser

visitor:
>&2 echo "make visitor has been replaced by make asthelpers"
exit 1

asthelpers:
go run ./go/tools/asthelpergen/main -in ./go/vt/sqlparser -iface vitess.io/vitess/go/vt/sqlparser.SQLNode -except "*ColName"

sizegen:
Expand All @@ -123,7 +127,6 @@ clean:
go clean -i ./go/...
rm -rf third_party/acolyte
rm -rf go/vt/.proto.tmp
rm -rf ./visitorgen

# Remove everything including stuff pulled down by bootstrap.sh
cleanall: clean
Expand Down
4 changes: 2 additions & 2 deletions go/vt/sqlparser/walker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func BenchmarkWalkLargeExpression(b *testing.B) {
}

func BenchmarkRewriteLargeExpression(b *testing.B) {
for i := 0; i < 10; i++ {
for i := 1; i < 7; i++ {
b.Run(fmt.Sprintf("%d", i), func(b *testing.B) {
exp := newGenerator(int64(i*100), 5).expression()
exp := newGenerator(int64(i*100), i).expression()
count := 0
for i := 0; i < b.N; i++ {
_, err := Rewrite(exp, func(_ *Cursor) bool {
Expand Down
File renamed without changes.

0 comments on commit 35cddfe

Please sign in to comment.