- 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. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNet.JsonPatch.Test | ||
| Microsoft.AspNet.Mvc.Abstractions.Test | ||
| Microsoft.AspNet.Mvc.ApiExplorer.Test | ||
| Microsoft.AspNet.Mvc.Core.Test | ||
| Microsoft.AspNet.Mvc.Extensions.Test | ||
| Microsoft.AspNet.Mvc.FunctionalTests | ||
| Microsoft.AspNet.Mvc.IntegrationTests | ||
| Microsoft.AspNet.Mvc.Razor.Host.Test | ||
| Microsoft.AspNet.Mvc.Razor.Test | ||
| Microsoft.AspNet.Mvc.TagHelpers.Test | ||
| Microsoft.AspNet.Mvc.Test | ||
| Microsoft.AspNet.Mvc.TestCommon | ||
| Microsoft.AspNet.Mvc.WebApiCompatShimTest | ||
| Microsoft.AspNet.Mvc.Xml.Test | ||
| WebSites | ||