Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

In-place sort instead of LINQ OrderByDescending - #1710

#1710
Merged
SimonCropp merged 1 commit into
mainVerifyTests/Verify:mainfrom
In-place-sort-instead-of-LINQ-OrderByDescendingVerifyTests/Verify:In-place-sort-instead-of-LINQ-OrderByDescendingCopy head branch name to clipboard
Apr 7, 2026
Merged

In-place sort instead of LINQ OrderByDescending#1710
SimonCropp merged 1 commit into
mainVerifyTests/Verify:mainfrom
In-place-sort-instead-of-LINQ-OrderByDescendingVerifyTests/Verify:In-place-sort-instead-of-LINQ-OrderByDescendingCopy head branch name to clipboard

Conversation

@SimonCropp

Copy link
Copy Markdown
Member
  • GuidScrubber.cs:19 — called on every GUID scrub operation
  • UserMachineScrubber_PerformReplacements.cs:16 — called on every user/machine scrub
  • DirectoryReplacements_StringBuilder.cs:43 — called on every directory replacement
  • Eliminates IOrderedEnumerable wrapper allocation + deferred execution overhead. List.Sort is in-place with zero allocation.

  - GuidScrubber.cs:19 — called on every GUID scrub operation
  - UserMachineScrubber_PerformReplacements.cs:16 — called on every user/machine scrub
  - DirectoryReplacements_StringBuilder.cs:43 — called on every directory replacement
  - Eliminates IOrderedEnumerable wrapper allocation + deferred execution overhead. List.Sort is in-place with zero
  allocation.
@SimonCropp SimonCropp added this to the 31.16.0 milestone Apr 7, 2026
@SimonCropp
SimonCropp merged commit 29e00ce into main Apr 7, 2026
7 checks passed
@SimonCropp
SimonCropp deleted the In-place-sort-instead-of-LINQ-OrderByDescending branch April 7, 2026 12:06
This was referenced Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.