aspnetcore/test/Microsoft.AspNet.Razor.Test/Generator
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
..
CodeTree React to resource changes 2014-06-25 23:48:19 -07:00
Compiler Fix for Razor #84 - Optimize GetSourceLocation 2014-08-20 13:22:23 -07:00
CSharpRazorCodeGeneratorTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
LineMappingTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
RazorCodeGeneratorTest.cs React to resource changes 2014-06-25 23:48:19 -07:00
TabTest.cs
TestSpan.cs