Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements to FrugalList #6280

Merged
merged 2 commits into from
Jul 21, 2022
Merged

Commits on Mar 18, 2022

  1. Some improvements to FrugalList

    - FrugalStructList's `ICollection<T>`-based constructor uses foreach to enumerate the contents of the collection.  If it's an `IList<T>`, we can instead index and avoid allocating the enumerator.
    - Avoid multiple interface calls to `ICollection<T>.Count` in FrugalStructList's ctor
    - Delete a dead ctor on `ArrayItemList<T>`.  That ctor was the only reason an array field may have been left null, so we can also remove subsequent null checks when accessing that array.
    - Use Span/Array in ArrayItemList for Clear, Contains, IndexOf, ToArray, and CopyTo rather than open-coding them
    stephentoub committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    9ab21da View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Configuration menu
    Copy the full SHA
    08c0fc8 View commit details
    Browse the repository at this point in the history