These types are allocated for every state transition in the parser (State) or every character that's read (character reference) and are fairly compact. Turning them into structs will remove a significant number of unnecessary allocations in the parser. For our razor code generation benchmark, making these changes yields about 500-750ms of speedup (out of 40000ms) or about 1%. |
||
|---|---|---|
| src/Microsoft.AspNet.Razor | ||
| test/Microsoft.AspNet.Razor.Test | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| LICENSE.txt | ||
| NuGet.Config | ||
| README.md | ||
| Razor.sln | ||
| build.cmd | ||
| build.sh | ||
| global.json | ||
| makefile.shade | ||
README.md
Razor
The Razor syntax provide a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content. This repo contains the parser and the C# code generator for the Razor syntax.
This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.