Skip to content

Commit b518cfb

Browse files
authored
Change most non-generic sorts to be generic (#6285)
Especially for the sorts based on int[], this avoids boxing potentially huge numbers of ints. Even for classes, it avoids unnecessary casting, and switching to a delegate avoids a top-level allocation for the comparer inside the current Array.Sort implementation.
1 parent 9949509 commit b518cfb

File tree

2 files changed

+111
-295
lines changed
  • src/Microsoft.DotNet.Wpf/src

2 files changed

+111
-295
lines changed

0 commit comments

Comments
 (0)