Reduce unnecessary allocation of SeldomUsedFields in MemoryCache. (#51761)
authorSteve Molloy <smolloy@microsoft.com>
Thu, 6 May 2021 22:23:46 +0000 (15:23 -0700)
committerGitHub <noreply@github.com>
Thu, 6 May 2021 22:23:46 +0000 (15:23 -0700)
commit430e424e5be3b4c29c30abf526de0c8d5b43e1df
tree90838a465f38e813cca1310dde491623a733f4af
parent01619ed19a7a2073972ee18758227f79ee3b8ba0
Reduce unnecessary allocation of SeldomUsedFields in MemoryCache. (#51761)

* Don't create SeldomUsedFields for an empty dependency collection.

* comment typo

Co-authored-by: Christopher Watford <christopher.watford@gmail.com>
Co-authored-by: Christopher Watford <christopher.watford@gmail.com>
src/libraries/System.Runtime.Caching/src/System/Runtime/Caching/MemoryCacheEntry.cs