D - Overriding Array's .sort
- resistor mac.com (11/11) Feb 28 2004 Is is possible to override the sorting method used in an array's .sort? ...
Is is possible to override the sorting method used in an array's .sort? Peeking at the DMD sources leads me to believe it's using a QuickSort, which is fine and dandy. But if I know I'm working with an an array of uints, I could make it a lot faster on the average by swapping in a RadixSort instead. Yes, I'm aware I can do this externally, but being able to override it would mean the faster RadixSort would be used even in code I didn't write. Just some musings. Owen
Feb 28 2004