View Single Post
  #16  
Old 11-24-2003, 08:50 AM
Armanthuz
Sarnak
 
Join Date: Apr 2003
Posts: 72
Default

Why not divide each grid into subgrids when you load the zone up. Would have to be sorted once upon load(based on location coords). Then depending uopn location of the person you could start the search with a subgrid of localized data. If not found there then sort nearest subgrids, until finally searching farthest ones.

In theory you could kill 2 birds with one stone and use subgrids to further reduce dist check time by reducing the possible sets of data you have to compare too.
Reply With Quote