No such thing as a small change | |
PerlMonks |
Re: Linked lists as arrays: inserting valuesby shmem (Chancellor) |
on Sep 25, 2006 at 16:27 UTC ( [id://574779]=note: print w/replies, xml ) | Need Help?? |
Benchmarking your code (insert_array_elem1)against the same code using splice (insert_array_elem2), changing the line
with
and using
results in
radiantmatrix - use_splice :-) --shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom
|
|