aspnetcore/test/Microsoft.AspNet.Razor.Test
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
..
Editor React to resource changes 2014-06-25 23:48:19 -07:00
Framework Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
Generator Fix for Razor #84 - Optimize GetSourceLocation 2014-08-20 13:22:23 -07:00
Parser React to resource changes 2014-06-25 23:48:19 -07:00
TestFiles
Text Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
Tokenizer Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
Utils Fixed build break due to adding configurations 2014-07-10 09:56:18 -07:00
CSharpRazorCodeLanguageTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
Microsoft.AspNet.Razor.Test.kproj Removed source files from the project 2014-08-15 09:24:16 -07:00
Project.json Renamed configurations to frameworks in project.json 2014-07-13 22:00:23 -07:00
RazorCodeLanguageTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
RazorDirectiveAttributeTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
RazorEngineHostTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
RazorTemplateEngineTest.cs Transition Microsoft.AspNet.Razor.Test from csproj to kproj. 2014-06-04 14:58:04 -07:00
StringTextBuffer.cs