"be consistent" | |
PerlMonks |
Re^3: Too much SQL not enough perlby InfiniteSilence (Curate) |
on Oct 10, 2005 at 15:10 UTC ( [id://498838]=note: print w/replies, xml ) | Need Help?? |
Nor, is it fair that in the 'slow' one, you use a temporary array...
EvanCarroll is right about the slight differences in the routines, so I commented out some things in code and made them both use the same array (note, I increased the number of elements to look for as well as the number of iterations for more meaningful results):
Which still produces:
I think the above changes were 'fair' since the performance of a function like SQL in() in an actual database should not decrease noticeably with the number of elements. Celebrate Intellectual Diversity
In Section
Seekers of Perl Wisdom
|
|