Skip to content

Optimize new ToHashSet api. #19544

@jamesqo

Description

@jamesqo

dotnet/corefx#13726 added Enumerable.ToHashSet, which is currently equivalent to writing new HashSet<TSource>(items). We may want to look into optimizing it by adding it as another method on IIListProvider, and reducing some virtual method calls. Opening this as a tracking issue for that.

cc @JonHanna

Metadata

Metadata

Assignees

Labels

area-System.LinqenhancementProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions