Do you know where your variables are? | |
PerlMonks |
Re^3: Fastest way to lookup a point in a setby kcott (Archbishop) |
on Aug 06, 2017 at 04:48 UTC ( [id://1196836]=note: print w/replies, xml ) | Need Help?? |
That's a good point. Depending on usage and distribution, short-circuiting on "exists $cells[$x]" could also improve speed. In fact, knowing more about the distribution, organising the matrix as "$cells[$y][$x]", instead of "$cells[$x][$y]", could be another improvement. — Ken
In Section
Seekers of Perl Wisdom
|
|