- 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. |
||
|---|---|---|
| .. | ||
| Expression | ||
| ViewEngine | ||
| DefaultDisplayTemplatesTest.cs | ||
| DefaultEditorTemplatesTest.cs | ||
| DefaultHtmlGeneratorTest.cs | ||
| DefaultTemplatesUtilities.cs | ||
| HtmlAttributePropertyHelperTest.cs | ||
| HtmlHelperCheckboxTest.cs | ||
| HtmlHelperDisplayNameExtensionsTest.cs | ||
| HtmlHelperDisplayTextTest.cs | ||
| HtmlHelperFormExtensionsTest.cs | ||
| HtmlHelperFormTest.cs | ||
| HtmlHelperHiddenTest.cs | ||
| HtmlHelperLabelExtensionsTest.cs | ||
| HtmlHelperLinkGenerationTest.cs | ||
| HtmlHelperNameExtensionsTest.cs | ||
| HtmlHelperPartialExtensionsTest.cs | ||
| HtmlHelperPasswordTest.cs | ||
| HtmlHelperSelectTest.cs | ||
| HtmlHelperTest.cs | ||
| HtmlHelperValidationSummaryTest.cs | ||
| HtmlHelperValueTest.cs | ||
| StringCollectionTextWriterTest.cs | ||
| TagBuilderTest.cs | ||
| TemplateRendererTest.cs | ||
| TestResources.cs | ||
| ViewContextTests.cs | ||
| ViewDataOfTTest.cs | ||