Skip to content

Improve ANTLR parser handling#75

Merged
yetanotherchris merged 2 commits intomainfrom
codex/implement-antlr-performance-optimizations
Jun 15, 2025
Merged

Improve ANTLR parser handling#75
yetanotherchris merged 2 commits intomainfrom
codex/implement-antlr-performance-optimizations

Conversation

@yetanotherchris
Copy link
Copy Markdown
Owner

Summary

  • parse templates once and cache the parse tree in Template
  • add SLL parsing with LL fallback in TemplateEngine
  • expose helpers for processing cached parse trees
  • update benchmark results in README

Testing

  • dotnet test --verbosity minimal
  • dotnet run -c Release --project benchmarks/TextTemplate.Benchmarks -- --job Short --filter "*" (5 runs)

https://chatgpt.com/codex/tasks/task_e_684eeddc5648832fbd1e8b64fbcee5f7

@yetanotherchris yetanotherchris merged commit 36f51ef into main Jun 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant