On Sunday, May 5, 2002, at 11:24 , Jonathan E. Paton wrote:
>>
>>
>http://www.wetware.com/drieux/CS/lang/Perl/Beginners/BenchMarks/complexArrayHash_v_loop.
>> txt
>>
>> for the details on the comparison....
>>
>> looks like the double loop is faster.... but it may not be
>> in some other configuration of data...
>
> The dereference is probably wasting cycles, why not bring that outside
> the loop and save some time. I suspect that puts the double loop even
> further ahead.
Benchmark: timing 1000000 iterations of doubleLoop, dullWay, pushList...
doubleLoop: 242130.75/s (n=1000000) # $hash->{key}
dullWay: 238663.48/s (n=1000000) # $hash{$key}
which is not what I had expected
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]