Go to file
Ryan Nowak ff944e5948 Fix for Razor #84 - Optimize GetSourceLocation
GetSourceLocation is frequently called to determine the location mappings
between the original document and the generated code.

The old implementation did a number of ToString and replace operations to
simplify the math on tracking the position - which put it front and center
in our performance measurements - about 25% of all execution time in a
sampling profile of our perf test.

The new code tracks position as code is written, and avoids allocations.
After these changes GetSourceLocation doesn't show up in the profile.
2014-08-20 13:22:23 -07:00
src/Microsoft.AspNet.Razor Fix for Razor #84 - Optimize GetSourceLocation 2014-08-20 13:22:23 -07:00
test/Microsoft.AspNet.Razor.Test Fix for Razor #84 - Optimize GetSourceLocation 2014-08-20 13:22:23 -07:00
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.txt
NuGet.Config Updating dev Nuget.config 2014-08-06 12:30:46 -07:00
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.