Welcome to the Monastery | |
PerlMonks |
Re: Evolving a faster filter?by RichardK (Parson) |
on Jan 04, 2013 at 15:30 UTC ( [id://1011655]=note: print w/replies, xml ) | Need Help?? |
It seems like you are traversing the list of thousands of objects many times, and maybe even copying lots of objects too! So would it be faster to only traverse the objects once? So something like this
I think there's a smart way to do that with iterators/closures too, but I don't know how fast it would be.
In Section
Seekers of Perl Wisdom
|
|