What is Nostr?
binkle /
npub1kdy…2hnf
2024-09-18 17:09:31

binkle on Nostr: what about 3 arrays of ranges representing the extent in each dimension of axis ...

what about 3 arrays of ranges representing the extent in each dimension of axis aligned bounding boxes. You could use binary search in each direction to determine whether any given object is inside one or more boxes.

That seems like it would be pretty fast and cache locality would be pretty good. Also the data would be sparse (only the a pair per-range) so it cuts down on the storage required
Author Public Key
npub1kdyzl44h6mhyl4djtf20w0t7avsy09umshq2k2czjf62ps774phqcd2hnf