ganezdragon / tree-sitter-perl

a perl parser for javascript
MIT License
33 stars 9 forks source link

parser.c is becoming extremely big #34

Closed Wilfred closed 7 months ago

Wilfred commented 1 year ago

The size of the generated C parser has reached 70 MiB, which is large for a parser.

There's a little bit of discussion at https://github.com/tree-sitter/tree-sitter/issues/1041 about parser size, but no obvious hints for this repo.

ganezdragon commented 1 year ago

@Wilfred , thanks for pointing that out. This is a serious problem, I couldn't even generate a .wasm file in my local machine.

let me go through this, and try to optimize this.

ganezdragon commented 11 months ago

currently the parser.c stands at 70MB, and I'm aiming to bring it under < 10MB.

image
Wilfred commented 7 months ago

@ganezdragon That's a big improvement, thank you :)