in reply to Re^3: Array or Hash
in thread Array or Hash

Oops, that's limited to insertions at the start or end.

Still wrong:

C:\test>perl -MTime::HiRes=time -E"$t=time; my @a; push @a, 1 for 1 .. 2**19; say (time()-$t)/2**19" 0.123739004135132 C:\test>perl -MTime::HiRes=time -E"$t=time; my @a; push @a, 1 for 1 .. 2**20; say (time()-$t)/2**20" 0.226538896560669 C:\test>perl -MTime::HiRes=time -E"$t=time; my @a; push @a, 1 for 1 .. 2**21; say (time()-$t)/2**21" 0.46043586730957
I avoided the theoretical BS, sticking to real world cases.

You get worse.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^5: Array or Hash
by ikegami (Patriarch) on Jan 21, 2011 at 19:24 UTC

    Still wrong

    No, it's your test that's wrong. You're dividing the result of say() instead of the time difference.

    You get worse.

    Again, enough with the lies and personal attacks. The comment doesn't even make any sense potato.

      What "lies"?

      No answer. Because there were no lies. Which makes your repeated accusation, both a lie and a personal attack.

      Like I said, you get worse.