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

Reduces some CPU time usage in SetCentralDependencies #5619

Merged

Conversation

GenelleM
Copy link
Contributor

@GenelleM GenelleM commented Jan 31, 2024

Bug

Fixes:
NuGet/Home#13182
NuGet/Home#13183
Regression? Last working version:

Description

Utilize a set string comparer to reduce CPU time when sorting in method SetCentralDependencies.
Also write out original string for central dependencies, when available, instead of creating a new string of the normalized version.

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

Resolves issues 13182 and 13183 to set a comparer and avoid allocating a new version string in SetCentralDependencies method
…genellem-msft-setCentralDependenciesComparer
Updating test to reflect change in how the dgspec centralpackageversions is written.
@GenelleM GenelleM requested a review from a team as a code owner January 31, 2024 03:44
@ghost ghost added the Community PRs created by someone not in the NuGet team label Jan 31, 2024
@jeffkl jeffkl self-assigned this Jan 31, 2024
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.

2 participants