Xiaofan 36f1ea93a5
enhance: optimize plan parser pool to avoid unnessary recycle (#32869)
fix #32868
plan parser takes too much cpu on high qps,this pr try to avoid create
lexer and parser too freequent

Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
2024-05-11 10:51:31 +08:00
..
2023-09-19 14:23:23 +08:00
2023-09-08 10:03:16 +08:00
2023-08-31 11:13:01 +08:00
2023-08-31 11:13:01 +08:00
2023-09-19 14:23:23 +08:00
2023-08-31 11:13:01 +08:00
2023-09-21 09:45:27 +08:00

Generate Parser with Antlr4

Install Antlr4

Please follow install antlr4 to install the antlr tool.

The version of antlr tool: 4.9.

Code Generate

After you install the antlr4, you can generate the parser code in golang with:

go generate

All generated code will be under directory generated.