News for hackers. Stuff that matters.
Re:.NET and Node.JS – Performance Comparison by meryn on Friday March 29, 2013 @10:35AM (#5460919)
Thinking this through some more, using sort with a comparator function would be unnecessary slow. Given the objective of the algoritm (return a median), it's much better to convert the array of strings to an array of floats (or ints, whatever he wants) first.
Re:.NET and Node.JS – Performance Comparison by sesqu on Friday March 29, 2013 @12:23PM (#5461457)
Or to simply use a selection algorithm instead of a sort, since they are asymptotically faster.