Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Deleting internal array elementsby Itatsumaki (Friar) |
on Mar 04, 2004 at 17:32 UTC ( [id://333941]=note: print w/replies, xml ) | Need Help?? |
Thanks everyone. I always thought I *knew* what splice did (replacing elements), and didn't read the perldocs. Tests on smaller datasets did indeed show that hashes were significantly faster than arrays here. Deleting the hash-element or just setting it to 0 or undef made very little performance difference on 100 MB files. Deleting the element will prevent any problems with duplicates down the road, so I went that way. Thanks again monks! -Tats
In Section
Seekers of Perl Wisdom
|
|