Hey, I have been trying to find an answer (both on stackoverflow and google) to the question how Array.Sort in C# is so fast.
I didn’t find one.
No matters which algorithm I used I didn’t manage to sort big arrays faster than it.
I know it uses Quick Sort, but it must be very optimized.
Does anybody know how did they make it so fast?
You could use ILSpy to disassemble the code. I would expect native methods in the inner sorting code to speed up things.