Skip to content

In-place sort instead of LINQ OrderByDescending - #1710

Merged
SimonCropp merged 1 commit into
mainfrom
In-place-sort-instead-of-LINQ-OrderByDescending
Apr 7, 2026
Merged

In-place sort instead of LINQ OrderByDescending#1710
SimonCropp merged 1 commit into
mainfrom
In-place-sort-instead-of-LINQ-OrderByDescending

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.
@SimonCroppSimonCropp added this to the 31.16.0 milestone Apr 7, 2026
@SimonCropp
SimonCropp merged commit 29e00ce into mainApr 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 freeto 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

@SimonCropp