in reply to Re^3: Fastest way to lookup a point in a set
in thread Fastest way to lookup a point in a set
There is also the issue of locales and the radix char when non-integer values are used with multidimensional hash keys.
If one has coordinates
then using the multidimensional hash approach in a locale where both $; and the radix char are a comma would result in ambiguous keys:[5, 5.5] [5.5, 5 ]
{5,5,5} {5,5,5}
I know the original post specifies signed ints, so I'm just being more generic here. I also haven't checked if there is locale specific behaviour of $;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Fastest way to lookup a point in a set
by LanX (Saint) on Aug 07, 2017 at 10:17 UTC | |
by swl (Prior) on Aug 07, 2017 at 23:53 UTC |