Skip to content

LINQ IEnumerable extension method optimization #43001

Closed

Description

@HermanSchoenfeld

LINQ IEnumerable extension methods should add special case IReadOnlyCollection<T.

For example, this line

if (source is ICollection<TSource> collectionoft)

shows an optimization for ICollection<TSource>, yet IReadOnlyCollection<TSource> will result in a full iteration.

Activity

  1. huoyaoyuan commented on Oct 3, 2020

    @huoyaoyuan
    Member
  2. stephentoub commented on Oct 5, 2020

    @stephentoub
    Member

    Closing as dup of #42254. Thanks.

  3. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions