in reply to RFC: Implementation of a QuadTree and worries of a lone programmer
I'm not sure what the Quad tree is used for, and whether you really need it, but as far as overlooking something, I would wonder if it is the fastest way to get your lists. Might not it be faster to make AoA's (arrays of arrays), and loop thru them with Inline-C, finding all $states==1, then extracting the $x,$y,$z.
I'm just mentioning it, because if your grid gets larger, and you are doing 3d stuff, you will need speed. Perl is relatively slow doing recursive math calculations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Implementation of a QuadTree and worries of a lone programmer
by Xenofur (Monk) on Nov 07, 2008 at 18:45 UTC | |
by eric256 (Parson) on Nov 07, 2008 at 18:57 UTC | |
by Xenofur (Monk) on Nov 07, 2008 at 19:13 UTC | |
by eric256 (Parson) on Nov 07, 2008 at 21:18 UTC | |
by Xenofur (Monk) on Nov 08, 2008 at 10:47 UTC | |
|