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.
Showing
此差异已折叠。
想要评论请 注册 或 登录