in reply to Re^2: Speed/Efficiency tweaks for a fannkuch benchmark script?
in thread Speed/Efficiency tweaks for a fannkuch benchmark script?
Yes, but... The only case where it would yeild a wrong answer is when $n == 2. So just check for that.
if ((max( @$copy[ 0 .. ( $copy->[0] - 1 ) ] ) != $copy->[0] && min( @$copy[ ( $copy->[-1] - 1 ) .. $#$copy ] ) != $copy->[-1]) || @$copy == 2 ) {
Or am I missing something?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Speed/Efficiency tweaks for a fannkuch benchmark script?
by robin (Chaplain) on Dec 01, 2005 at 19:30 UTC | |
by thundergnat (Deacon) on Dec 01, 2005 at 19:39 UTC |