in reply to Re^3: Unpacking and converting
in thread Unpacking and converting
I think in this case the array creation and population makes significant influence on results. Consider this
You missed the point. The shifting of elements from the array makes it empty after first iteration. But Benchmark makes thousands of iteration within 1 second. All of those iterations work with empty array, this explains why this approach appears to be "faster".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Unpacking and converting
by BrowserUk (Patriarch) on Feb 16, 2011 at 15:51 UTC | |
Re^5: Unpacking and converting
by dwalin (Monk) on Feb 16, 2011 at 14:01 UTC |
In Section
Seekers of Perl Wisdom