ALX
Well-known member
It seems that the amount of code that I need to write to use the IComparer interface to sort an array of similar structures is substantially larger and more complicated than if I just do the sorting manually in code. My current sorting method sets up a temporary array and copies the original array to the temporary array by the lowest element first. So the code needs to traverse the entire original array once for each element copied.
My question...
Is the execution speed much faster using the "Array.Sort(...)" interface, to make it worth the effort ? My thinking is that it would not be all that much faster since the NET has to call my subroutines to do the sorting anyway.
My question...
Is the execution speed much faster using the "Array.Sort(...)" interface, to make it worth the effort ? My thinking is that it would not be all that much faster since the NET has to call my subroutines to do the sorting anyway.
Last edited: