Hacker News new | ask | show | jobs
by joshu 5710 days ago
Use tiles.
1 comments

For what? How?
Hash the points into large tiles. Only calculate the nearby tiles, then find the items that are in the list of tiles (which is faster, due to being indexed.) Then use Haversine or whatever to filter.