Skip to content

Fast clear all items primitive #11896

@KirillOsenkov

Description

@KirillOsenkov

We should detect the pattern for clearing all items and make it super cheap and fast:

    <!-- Remove items which we will never again use - they just sit around taking up memory otherwise -->
    <ItemGroup>
      <_AllChildProjectItemsWithTargetPath Remove="@(_AllChildProjectItemsWithTargetPath)"/>
    </ItemGroup>
    <ItemGroup>
      <Foo Remove="@(Foo)" />
    </ItemGroup>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions