in reply to quick sort. How do it faster

I suppose it's purely academic and there is no real problem which could easier be solved with sort

Every recursion can be rewritten as a loop, avoiding calls and parameter passing can result into considerable speed gain.

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: quick sort. How do it faster
by builat (Monk) on Oct 20, 2013 at 03:04 UTC
    Thank you for your response.
    Indeed, as I wrote above all idea is to learn how to write better code.
    Certainly in the production decisions sort will be used.