aspnetcore/test/Microsoft.AspNet.Mvc.Extens...
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
..
Authorization React to Http/AuthNZ changes 2015-06-25 17:30:09 -07:00
Cors
ModelBinding Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
Properties
Rendering Optimizing TagBuilder.CreateSanitizedId to create buffer only when needed. 2015-07-06 17:19:38 -07:00
TestFiles
ViewComponents Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ActionFilterAttributeTests.cs
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
ChallengeResultTest.cs React to Http/AuthNZ changes 2015-06-25 17:30:09 -07:00
ConsumesAttributeTests.cs
ContentResultTest.cs
ControllerTests.cs React to Http/AuthNZ changes 2015-06-25 17:30:09 -07:00
ControllerUnitTestabilityTests.cs React to Http/AuthNZ changes 2015-06-25 17:30:09 -07:00
CreatedAtActionResultTests.cs
CreatedAtRouteResultTests.cs
CreatedResultTests.cs
EmptyResultTests.cs
FileContentResultTest.cs
FilePathResultTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
FileResultTest.cs
FileStreamResultTest.cs
FormatFilterTest.cs
FormatterMappingsTest.cs
HttpNotFoundObjectResultTest.cs
HttpNotFoundResultTests.cs
HttpStatusCodeResultTests.cs
HttpUnauthorizedResultTests.cs
JsonInputFormatterTest.cs
JsonOutputFormatterTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
JsonPatchInputFormatterTest.cs
JsonResultTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
Microsoft.AspNet.Mvc.Extensions.Test.xproj
MockAuthorizationOptionsAccessor.cs
MockMvcOptionsAccessor.cs
MockMvcViewOptionsAccessor.cs
MvcCacheOptionsTest.cs
PartialViewResultTest.cs
ProducesAttributeTests.cs
RedirectResultTest.cs
RedirectToActionResultTest.cs
RedirectToRouteResultTest.cs [Fixes #2684] Removed Mvc.Common 2015-06-25 16:02:07 -07:00
RemoteAttributeTest.cs
RequireHttpsAttributeTests.cs
Resources.resx
ResponseCacheAttributeTest.cs
ResponseCacheFilterTest.cs
ResultFilterAttributeTest.cs
SerializableErrorTests.cs
ServiceBasedControllerActivatorTest.cs
SkipStatusCodePagesAttributeTest.cs
ViewComponentTests.cs
ViewDataDictionaryOfTModelTest.cs
ViewDataDictionaryTest.cs
ViewEngineDescriptorExtensionsTest.cs
ViewEngineDescriptorTest.cs
ViewExecutorTest.cs
ViewResultTest.cs
project.json