Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: Make ModelMetadata.AdditionalData lazy-initialized [1570]

$
0
0
Performance testing shows that a significant number of ModelMetadata objects are instantiated during modelbinding/validation. The AdditionalData dictionary isn't accessed anywhere in our code, so on the main path it's just wasted allocation.

We can safely make this property lazy-initialized with no behavior change.

Viewing all articles
Browse latest Browse all 7215

Trending Articles