in reply to Re: does splice'ing an array of hashes free memory?
in thread does splice'ing an array of hashes free memory?
you're right that it's expensive. but the grep method is even slower, because the arrays are ~30000 long, and the information i "extract" from them is somewhere near the beginning of the array and their length is somewhere between 1-15. the grep method iterates to the end of the array which is what i try to prevent
my first version just splice'd it the amount of $#cvs_to_delete, it ran quick, but i can't be sure it works.
i'll try to make something that splices all consequtive rows in one sweep.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: does splice'ing an array of hashes free memory?
by lagle (Novice) on Nov 02, 2010 at 12:34 UTC |