At 00:45 +0900 2001.07.25, [EMAIL PROTECTED] wrote:
>Anyone got a clue as to why the second run sees the values for the
>scalar_derived method has almost doubled? Is this a memory leak in
>MacPerl or something else?
Benchmarks on Mac OS are notoriously unreliable. If your email app decides
to look for email, it can throw off your benchmark, etc. I wouldn't worry
about such a small number. If you saw a difference of 1 minute to 2
minutes instead of 1 second to 2 seconds, that could possibly be worrisome.
You need to run benchmarks a few times and look at the results, and even
then be skeptical.
As to "scalar(@array)" (or "$x = @array"), it is quite highly optimized. I
would guess offhand that "scalar(@array)" is about as fast as "$#array".
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/