in reply to Re^3: Don't treat your numbers as strings, or Interpolation is worse than you might think
in thread Don't treat your numbers as strings, or Interpolation is worse than you might think

diotalevi: I didn't mean the copy at the start, but these ones in the benchmark loop:
my @permuted = @ary[0..$i-1, $j, $i+1..$j-1, $i, $j+1..$len]; # and my @permuted = @ary; @permuted[$i, $j] = @permuted[$j, $i];
(and the ones for @ary2, obviously)

In other words, the operation in the benchmark IS a copy operation.

  • Comment on Re^4: Don't treat your numbers as strings, or Interpolation is worse than you might think
  • Download Code

Replies are listed 'Best First'.
Re^5: Don't treat your numbers as strings, or Interpolation is worse than you might think
by diotalevi (Canon) on Jul 22, 2006 at 16:04 UTC

    Ohhh! Sure! There's where the extra work occurs! ++Joost.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊