aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
Doug Bunting 4cca6b09f0 Reduce allocations during HTML generation
- #3918
- precompute size of `StringBuilder` in `ExpressionHelper`
- reduce `string` allocations in `ViewDataEvaluator`
 - also get rid of `Enumeration` state machines
- reduce the size of a few objects; use more expression-valued properties
 - e.g. don't store `_modelType` in `ModelExplorer`
- add `EmptyArray<TElement>`; make empty arrays consistently `static`
- avoid `string.Split()` in HTML and tag helpers

nits:
- make `ExpressionHelperTest` tests more stringent
- correct `Message` for an `ArgumentNullException`
- remove excess `using`s in classes I touched (but often ended up leaving otherwise unchanged)
- improve doc comments
- remove `ToString()` call on a `string`
- avoid encoding `string.Empty`
- fix test file name
- remove useless variables
- correct spelling
- improve whitespace
2016-10-03 12:17:47 -07:00
..
ApplicationModel
ApplicationParts
Authorization
Builder
Controllers
DependencyInjection
Filters
Formatters Reduce allocations during HTML generation 2016-10-03 12:17:47 -07:00
Infrastructure
Internal
ModelBinding Reduce allocations during HTML generation 2016-10-03 12:17:47 -07:00
Properties
Routing
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs
ChallengeResultTest.cs
ConsumesAttributeTests.cs
ContentResultTest.cs
ControllerBaseTest.cs
CreatedAtActionResultTests.cs
CreatedAtRouteResultTests.cs
CreatedResultTests.cs
EmptyResultTests.cs
FileContentResultTest.cs
FileResultTest.cs
FileStreamResultTest.cs
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs
HttpNotFoundResultTests.cs
HttpOkObjectResultTest.cs
HttpOkResultTest.cs
HttpStatusCodeResultTests.cs
HttpUnauthorizedResultTests.cs
LocalRedirectResultTest.cs
MediaTypeCollectionTest.cs Reduce allocations during HTML generation 2016-10-03 12:17:47 -07:00
Microsoft.AspNetCore.Mvc.Core.Test.xproj
MvcOptionsTest.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs
PhysicalFileResultTest.cs
ProducesAttributeTests.cs
RedirectResultTest.cs
RedirectToActionResultTest.cs
RedirectToRouteResultTest.cs
RequireHttpsAttributeTests.cs
ResponseCacheAttributeTest.cs
SerializableErrorTests.cs
SignInResultTest.cs
SignOutResultTest.cs
TestApplicationPart.cs
TestFeatureProvider.cs
VirtualFileResultTest.cs
project.json