in reply to Re^2: Fastest way to lookup a point in a set
in thread Fastest way to lookup a point in a set
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
|
|---|