in reply to Re: Which one is best for optimization
in thread Which one is best for optimization
and the sort algorithm that takes O(n) time in the general case has yet to be inventedWell, but for this particular case, sorting numbers, it has already been invented!, it is called radix sort and there are at least two Perl implementations available from CPAN: Sort::Radix (pure perl) and Sort::Key::Radix (XS).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Which one is best for optimization
by grinder (Bishop) on Sep 29, 2008 at 15:34 UTC |