3 ms·
The readme says it uses an R-tree.[0] As the wikipedia article explains all the objects are grouped so that near by objects are put in the same group and for ea
by laszlokorte 8y ago
The readme says it uses an R-tree.[0] As the wikipedia article explains all the objects are grouped so that near by objects are put in the same group and for each group a bounding box is stored. When querying the the structure for a given position you can discard all groups that to not intersect your given position/range.
[0] https://en.wikipedia.org/wiki/R-tree https://en.wikipedia.org/wiki/R-tree