AnyhowStep / sql-compiler

An experimental SQL compiler
MIT License
0 stars 0 forks source link

Fix slowness on: test-fixture/parse-emit/statement/from-clause/join/rhs-parenthesized-join-long.txt #4

Open AnyhowStep opened 3 years ago

AnyhowStep commented 3 years ago

Takes 3s on Travis CI, 1.5s on local machine.

https://github.com/AnyhowStep/sql-compiler/blob/005bc56a92735fe7fdd5c74c6c5864b175b2b7b4/test-fixture/parse-emit/statement/from-clause/join/rhs-parenthesized-join-long.txt

AnyhowStep commented 3 years ago

Surprisingly, when I strip away all the test code, the actual parsing only takes 253ms

When I use a new parser I wrote from scratch, it takes 28ms