Commit Graph

1 Commits (claude/reduce-binary-size-01BSCVzUBqZD4ZBiji5q5kh7)

Author SHA1 Message Date
Claude ce91512285
Complete comprehensive tree-sitter parser size analysis
Tested 43 of 52 parsers (82.7% coverage) to identify binary size
contributors. Replaced initial 7-parser analysis with full results.

MAJOR FINDING: Verilog parser alone accounts for 17.33 MB (15.5%)!

Top 10 largest parsers (56.97 MB total, 51% of binary):
1. Verilog: 17.33 MB - EXTREME outlier, 3x larger than #2
2. C#: 6.06 MB
3. Julia: 5.98 MB
4. ObjC: 5.09 MB
5. F#: 4.90 MB
6. Kotlin: 3.88 MB
7. Haskell: 3.71 MB
8. C++: 3.68 MB
9. Swift: 3.18 MB
10. TypeScript: 3.16 MB

Key insights:
- Top 5 parsers = 39.4 MB (35% of binary)
- All 43 parsers = 74.1 MB (66% of binary)
- Making Verilog optional alone saves 15.5%
- Tiered feature flags could reduce binary to ~40-85 MB

Recommendations:
1. Immediate: Make Verilog optional (17 MB savings)
2. Short-term: Implement tiered feature system
3. Medium-term: Provide pre-built binaries for common configs

Complete data in all_parser_results.csv with detailed analysis
in PARSER_SIZE_ANALYSIS.md including methodology, insights, and
actionable recommendations for binary size optimization.
2025-12-05 00:49:37 +07:00