aspnetcore/test/Microsoft.AspNet.Mvc.Extens.../Rendering
sornaks 57f1ae755f Optimizing TagBuilder.CreateSanitizedId to create buffer only when needed.
- Tested with a page containing 33% of invalid Ids which go through TagBuilder.CreateSanitizedId.
- Ran 10,000 requests with 20 in parallel and measured perf.
- Data before the change:
System.String allocated by CreateSanitizedId: 1.84 mb
System.Text.StringBuilder allocated by CreateSanitizedId: 1.68 mb
- Data after the change:
System.String allocated by CreateSanitizedId: 0.720 mb
System.Text.StringBuilder allocated by CreateSanitizedId: 0.560 mb

Around 60% improvement from the original case.
2015-07-06 17:19:38 -07:00
..
Expression
ViewEngine
DefaultDisplayTemplatesTest.cs
DefaultEditorTemplatesTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
DefaultHtmlGeneratorTest.cs
DefaultTemplatesUtilities.cs
HtmlAttributePropertyHelperTest.cs
HtmlHelperCheckboxTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HtmlHelperDisplayNameExtensionsTest.cs
HtmlHelperDisplayTextTest.cs
HtmlHelperFormExtensionsTest.cs
HtmlHelperFormTest.cs
HtmlHelperHiddenTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HtmlHelperLabelExtensionsTest.cs
HtmlHelperLinkGenerationTest.cs [Fixes #2684] Removed Mvc.Common 2015-06-25 16:02:07 -07:00
HtmlHelperNameExtensionsTest.cs
HtmlHelperPartialExtensionsTest.cs
HtmlHelperPasswordTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HtmlHelperSelectTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HtmlHelperTest.cs
HtmlHelperValidationSummaryTest.cs
HtmlHelperValueTest.cs
StringCollectionTextWriterTest.cs
TagBuilderTest.cs Optimizing TagBuilder.CreateSanitizedId to create buffer only when needed. 2015-07-06 17:19:38 -07:00
TemplateRendererTest.cs
TestResources.cs
ViewContextTests.cs
ViewDataOfTTest.cs