in reply to Re^2: quick sort. How do it faster
in thread quick sort. How do it faster
Hmm... I'm surprised that introducing that temporary variable for swaps makes such a difference, but it does appear to. Do you have any explanation? Is it because it's saving a couple of array indexing operations, or is it just that ($x,$y)=($y,$x) is implemented suboptimally by Perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: quick sort. How do it faster
by BrowserUk (Patriarch) on Oct 23, 2013 at 16:31 UTC | |
|
Re^4: quick sort. How do it faster
by LanX (Saint) on Oct 24, 2013 at 12:41 UTC |