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

Unroll Linq usage in FilterDependencyProvidersForLibrary #5535

Merged

Conversation

Erarndt
Copy link
Contributor

@Erarndt Erarndt commented Dec 7, 2023

Bug

Related: NuGet/Home#12748

Regression? Last working version:

Description

There are some easily avoidable allocations that were happening in FilterDependencyProvidersForLibrary due to closure and delegate allocations caused by Linq usage. I swapped the implementation and added a comment.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@Erarndt Erarndt requested a review from a team as a code owner December 7, 2023 22:55
@ghost ghost added the Community PRs created by someone not in the NuGet team label Dec 7, 2023
@nkolev92 nkolev92 self-assigned this Dec 8, 2023
@nkolev92 nkolev92 enabled auto-merge (squash) December 13, 2023 16:55
@nkolev92 nkolev92 merged commit 4ea7c85 into NuGet:dev Dec 13, 2023
15 of 16 checks passed
@Erarndt Erarndt deleted the dev-erarndtFilterDependencyProvidersForLibrary branch January 12, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants