mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 21:14:21 +01:00
sqlite uses [fixed-size](https://github.com/sqlite/sqlite/blob/7fc6e6a27 26e650d3b82c6d3683bdbdc10e02467/tool/lempar.c#L238) array for `yystack` and grow stack if needed. Let replace `vec` with `smallvec` in rust version. after: ```sh sqlparser-rs parsing benchmark/sqlparser::select time: [564.19 ns 565.63 ns 567.18 ns] change: [-11.514% -11.288% -11.067%] (p = 0.00 < 0.05) Performance has improved. Found 4 outliers among 100 measurements (4.00%) 1 (1.00%) low mild 3 (3.00%) high mild sqlparser-rs parsing benchmark/sqlparser::with_select time: [1.9812 µs 1.9861 µs 1.9914 µs] change: [-7.5226% -7.3080% -7.0858%] (p = 0.00 < 0.05) Performance has improved. Found 5 outliers among 100 measurements (5.00%) 1 (1.00%) low mild 4 (4.00%) high mild ``` Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #1999